多选题Examine the description of the MARKS table: STD_ID NUMBER(4) STUDENT_NAME VARCHAR2(30) SUBJ1 NUMBER(3) SUBJ2 NUMBER(3) SUBJ3 NUMBER(3) SUBJ1, SUBJ2, and SUBJ3 indicate the marks (grades) obtained by a student in the three subjects. Which two statements

题目
多选题
Examine the description of the MARKS table: STD_ID NUMBER(4) STUDENT_NAME VARCHAR2(30) SUBJ1 NUMBER(3) SUBJ2 NUMBER(3) SUBJ3 NUMBER(3) SUBJ1, SUBJ2, and SUBJ3 indicate the marks (grades) obtained by a student in the three subjects. Which two statements are valid? ()
A

SELECT SUM(subj1, subj2, subj3) FROM marks;

B

SELECT SUM(subj1 + subj2 + subj3) FROM marks;

C

SELECT SUM(subj1), SUM(subj2), SUM(subj3) FROM marks;

D

SELECT MAX(subj1, subj2, subj3) FROM marks;

E

SELECT MINIMUM(subj1) FROM marks;

F

SELECT COUNT(std_id) FROM marks WHERE subj1 >= AVG(subj1);

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Examine the description of the MARKS table:SUBJ1 and SUBJ2 indicate the marks obtained by a student in two subjects.Examine this SELECT statement based on the MARKS table:What is the result of the SELECT statement?()

A. The statement executes successfully and returns the student ID and sum of all marks for each student who obtained more than the average mark in each subject.

B. The statement returns an error at the SELECT clause.

C. The statement returns an error at the WHERE clause.

D. The statement returns an error at the ORDER BY clause.


参考答案:C

第2题:

Examine the description of the EMPLOYEES table: EMP_ID NUMBER(4) NOT NULL LAST_NAME VARCHAR2(30) NOT NULL FIRST_NAME VARCHAR2(30) DEPT_ID NUMBER(2) Which statement produces the number of different departments that have employees with last name Smith?()

  • A、SELECT COUNT(*) FROM employees WHERE last_name='Smith';
  • B、SELECT COUNT(dept_id) FROM employees WHERE last_name='Smith';
  • C、SELECT DISTINCT(COUNT(dept_id)) FROM employees WHERE last_name='Smith';
  • D、SELECT COUNT(DISTINCT dept_id) FROM employees WHERE last_name='Smith';
  • E、SELECT UNIQUE(dept_id) FROM employees WHERE last_name='Smith';

正确答案:D

第3题:

(c) Excluding the number of complaints by patients, identify and briefly explain THREE quantitative

non-financial performance measures that could be used to assess the ‘quality of service’ provided by the

Dental Health Partnership. (3 marks)


正确答案:
(c) In order to assess the quality of patient care provided by the Dental Health Partnership the following performance measures
might be used:
– The percentage of ‘on time’ treatment of those patients who arrived prior to their appointment time would provide an
indication regarding the effectiveness of the scheduling of appointments by the Dental Health Partnership.
– the percentage of patient appointments which were re-arranged at the request of the Dental Health Partnership.
Rearranged appointments represent the provision of a lower level of service provision to clients who may, as a result,
switch to an alternative dental practice.
– the percentage of patients who return for treatment after their first appointment would provide an indication that they
were satisfied with the service they received.
– the percentage of patients who were able to gain an appointment at their preferred date and time is an indication of the
availability of the service to clients.
Note: Candidates were only required to discuss three measures.

第4题:

Examine the following command: CREATE TABLE (prod_id number(4), Prod_name varchar2 (20), Category_id number(30), Quantity_on_hand number (3) INVISIBLE); Which three statements are true about using an invisible column in the PRODUCTS table?()

  • A、The %ROWTYPE attribute declarations in PL/SQL to access a row will not display the invisible column in the output.
  • B、The DESCRIBE commands in SQL *Plus will not display the invisible column in the output.
  • C、Referential integrity constraint cannot be set on the invisible column.
  • D、The invisible column cannot be made visible and can only be marked as unused.
  • E、A primary key constraint can be added on the invisible column.

正确答案:A,B,C

第5题:

Which statement accomplish this? ()

  • A、CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status VARCHAR2 (10), date_ordered DATE = SYSDATE);
  • B、CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status VARCHAR2 (10), date_ordered DATE DEFAULT SYSDATE);
  • C、CREATE OR REPLACE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status VARCHAR2 (10), date_ordered DATE DEFAULT SYSDATE);
  • D、CREATE OR REPLACE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status NUMBER (10), date_ordered DATE = SYSDATE);
  • E、CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status NUMBER (10), date_ordered DATE = SYSDATE);
  • F、CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status NUMBER (10), date_ordered DATE DEFAULT SYSDATE);

正确答案:B

第6题:

Examine the description of the MARKS table: STD_ID NUMBER(4) STUDENT_NAME VARCHAR2(30) SUBJ1 NUMBER(3) SUBJ2 NUMBER(3) SUBJ3 NUMBER(3) SUBJ1, SUBJ2, and SUBJ3 indicate the marks (grades) obtained by a student in the three subjects. Which two statements are valid? ()

  • A、SELECT SUM(subj1, subj2, subj3) FROM marks;
  • B、SELECT SUM(subj1 + subj2 + subj3) FROM marks;
  • C、SELECT SUM(subj1), SUM(subj2), SUM(subj3) FROM marks;
  • D、SELECT MAX(subj1, subj2, subj3) FROM marks;
  • E、SELECT MINIMUM(subj1) FROM marks;
  • F、SELECT COUNT(std_id) FROM marks WHERE subj1 >= AVG(subj1);

正确答案:B,C

第7题:

You need to design a student registration database that contains several tables storing academic information. The STUDENTS table stores information about a student. The STUDENT_GRADES table stores information about the student's grades. Both of the tables have a column named STUDENT_ID. The STUDENT_ID column in the STUDENTS table is a primary key. You need to create a foreign key on the STUDENT_ID column of the STUDENT_GRADES table that points to the STUDENT_ID column of the STUDENTS table. Which statement creates the foreign key?()

  • A、CREATE TABLE student_grades (student_id NUMBER(12),semester_end DATE, gpa NUMBER(4,3), CONSTRAINT student_id_fk REFERENCES (student_id) FOREIGN KEY student (student_id));
  • B、CREATE TABLE student_grades(student_id NUMBER(12),semester_end DATE, gpa NUMBER(4,3), student_id_fk FOREIGN KEY (student_id) REFERENCES students (student_id));
  • C、CREATE TABLE student_grades(student_id NUMBER(12),semester_end DATE, gpa NUMBER(4,3), CONSTRAINT FOREIGN KEY (student_id) REFERENCES student (student_id));
  • D、CREATE TABLE student_grades(student_id NUMBER(12),semester_end DATE, gpa NUMBER(4,3), CONSTRAINT student_id_fk FOREIGN KEY (student_id) REFERENCES students (student_id));

正确答案:D

第8题:

Examine the description of the MARKS table:STD_ID NUMBER(4)STUDENT_NAME VARCHAR2(30)SUBJ1 NUMBER(3)SUBJ2 NUMBER(3)SUBJ1 and SUBJ2 indicate the marks obtained by a student in two subjects. Examine this SELECT statement based on the MARKS table:SELECT subj1+subj2 total_marks, std_idFROM marksWHERE subj1 > AVG(subj1) AND subj2 > AVG(subj2) ORDER BY total_ marks;What is the result of the SELECT statement? ()

A. The statement executes successfully and returns the student ID and sum of all marks for each student who obtained more than the average mark in each subject.

B. The statement returns an error at the SELECT clause.

C. The statement returns an error at the WHERE clause.

D. The statement returns an error at the ORDER BY clause.


参考答案:C

第9题:

Examine the command that is used to create a table:  SQL> CREATE TABLE orders(oid NUMBER(6) PRIMARY KEY, odate DATE, ccode NUMBER(6), oamt NUMBER(10,2)) TABLESPACE users;  Which two statements are true about the effect of the above command) ()

  • A、A CHECK constraint is created on the OID column.
  • B、A NOT NULL constraint is created on the OID column.
  • C、The ORDERS table is the only object created in the USERS tablespace.
  • D、The ORDERS table and a unique index are created in the USERS tablespace.
  • E、The ORDERS table is created in the USERS tablespace and a unique index is created on the OIDcolumn in the SYSTEM tablespace.

正确答案:B,D

第10题:

The STUDENT_GRADES table has these columns: STUDENT_ID NUMBER(12) SEMESTER_END DATE GPA NUMBER(4,3) Which statement finds the highest grade point average (GPA) per semester?()

  • A、SELECT MAX(gpa) FROM student_grades WHERE gpa IS NOT NULL;
  • B、SELECT (gpa) FROM student_grades GROUP BY semester_end WHERE gpa IS NOT NULL;
  • C、SELECT MAX(gpa) FROM student_grades WHERE gpa IS NOT NULL GROUP BY semester_end;
  • D、SELECT MAX(gpa) GROUP BY semester_end WHERE gpa IS NOT NULL FROM student_grades;
  • E、SELECT MAX(gpa) FROM student_grades GROUP BY semester_end WHERE gpa IS NOT NULL;

正确答案:C

更多相关问题