Question 1

View the Exhibit and examine the structure of the PRODUCT_INFORMATION and INVENTORIES tables.

You have a requirement from the supplies department to give a list containing PRODUCT_ID, SUPPLIER_ID, and QUANTITY_ON_HAND for all the products wherein QUANTITY_ON_HAND is less than five.
Which two SQL statements can accomplish the task? (Choose two.)
  • Question 2

    Examine the commands used to create DEPARTMENT_DETAILSand COURSE_DETAILS:

    You want to generate a report that shows all course IDs irrespective of whether they have corresponding department IDs or not but no department IDs if they do not have any courses.
    Which SQL statement must you use?
    SELECT course_id, department_id, FROM department_details d RIGHT OUTER JOIN
  • Question 3

    View the Exhibit and examine the structure of the EMPLOYEES and JOB_HISTORY tables.

    Examine this query which must select the employee IDs of all the employees who have held the job SA_MAN at any time during their employment.
    SELECT employee_id
    FROM employees
    WHERE job_id = 'SA_MAN'
    -------------------------------------
    SELECT employee_id
    FROM job_history
    WHERE job_id='SA_MAN';
    Choose two correct SET operators which would cause the query to return the desired result. (Choose two.)
  • Question 4

    View the Exhibit and examine the structure of the EMPLOYEES table.
    You want to display all employees and their managers having 100 as the MANAGER_ID. You want the output in two columns: the first column would have the LAST_NAME of the managers and the second column would have LAST_NAME of the employees.
    Which SQL statement would you execute?
  • Question 5

    View the exhibit and examine the description of the DEPARTMENTS and EMPLOYEES tables.

    The retrieve data for all the employees for their EMPLOYEE_ID, FIRST_NAME, and DEPARTMENT NAME, the following SQL statement was written:
    SELECT employee_id, first_name, department_name
    FROM employees
    NATURAL JOIN departments;
    The desired output is not obtained after executing the above SQL statement. What could be the reason for this?