Question 176

Examine the commands used to create DEPARTMENT_DETAILSand COURSE_DETAILS:
SQL>CREATE TABLE DEPARTMENT_DETAILS
( DEPARTMENT_ID NUMBER PRIMARY KEY,
DEPARTMENT_NAME VARCHAR2(50),
HOD VARCHAR2(50));
SQL>CREATE TABLE COURSE_DETAILS
(COURSE_ID NUMBER PRIMARY KEY,
COURSE_NAME VARCHAR2(50),
DEPARTMENT_ID VARCHAR2(50));
You want to generate a list of all department IDs along with any course IDs that may have been assigned to them.
Which SQL statement must you use?
  • Question 177

    Which two statements are true about dropping views?
  • Question 178

    Examine the description of the ORDERStable:

    Examine the description of the INVOICEStable:

    Examine this query:

    Which three rows will it return? (Choose three.)
  • Question 179

    Examine the structure of the EMPLOYEEStable.

    There is a parent/child relationship between EMPLOYEE_IDand MANAGER_ID.
    You want to display the last names and manager IDs of employees who work for the same manager as the employee whose EMPLOYEE_IDis 123.
    Which query provides the correct output?
  • Question 180

    View the Exhibit and examine the data in the PRODUCTS table.

    You must display product names from the PRODUCTS table that belong to the 'Software/other' category with minimum prices as either $2000 or $4000 and with no unit of measure.
    You issue this query:

    Which statement is true?