Question: 1
Examine the structure of the EMPLOYEES table.
NameNull?Type
---------------------- ------------
EMPLOYEE_IDNOT NULLNUMBER(6)
FIRST_NAMEVARCHAR2(20)
LAST_NAMENOT NULLVARCHAR2(25)
EMAILNOT NULLVARCHAR2(25)
PHONE NUMBERVARCHAR2(20)
HIRE_DATENOT NULLDATE
JOB_IDNOT NULLVARCHAR2(10)
SALARYNUMBER(8,2)
COMMISSION_PCTNUMBER(2,2)
MANAGER_IDNUMBER(6)
DEPARTMENT_IDNUMBER(4)
There is a parent/child relationship between EMPLOYEE_ID and 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_ID is 123.
Which query provides the correct output?
Question: 2
Sales data of a company is stored in two tables, SALES1 and SALES2, with some data being duplicated across the tables. You want to display the results from the SALES1 table, which are not present in the SALES2 table.
SALES1 table
NameNullType
-----------------------------------------------
SALES_IDNUMBER
STORE_IDNUMBER
ITEMS_IDNUMBER
QUANTITYNUMBER
SALES_DATEDATE
SALES2 table
NameNullType
----------------------------------------------
SALES_IDNUMBER
STORE_IDNUMBER
ITEMS_IDNUMBER
QUANTITYNUMBER
SALES_DATEDATE
Which set operator generates the required output?
Question: 3
Which three statements are true regarding the data types?
Question: 4
Which three statements are true regarding subqueries?
Question: 5
Examine the structure of the MEMBERS table.
NameNull?Type
------------------------------------------------------------
MEMBER_IDNOT NULLVARCHAR2 (6)
FIRST_NAMEVARCHAR2 (50)
LAST_NAMENOT NULLVARCHAR2 (50)
ADDRESSVARCHAR2 (50)
CITYVARCHAR2 (25)
STATENOT NULL VARCHAR2 (3)
Which query can be used to display the last names and city names only for members from the states MO and MI?