Question 21

Which three privileges can be restricted to a subset of columns in a table? (Choose three.)
  • Question 22

    Examine the data in the ORDERS table:

    Examine the data in the INVOICE table:

    Examine this query:

    Which three rows will it return?
  • Question 23

    Examine the types and examples of relationship that follow:
    1 One-to-one a) teacher to Student
    2 One-to-many b) Employees to Manager
    3 Many-to-one c) Person to SSN
    4 Many-to-many d) Customers to Products
    Which option indicates correctly matched relationships?
  • Question 24

    View the Exhibit and examine the structure of the SALES and PRODUCTS tables. (Choose two.)

    In the SALES table, PROD_ID is the foreign key referencing PROD_ID in the PRODUCTS table. You must list each product ID and the number of times it has been sold.
    Examine this query which is missing a JOIN operator:
    SQL > SELECT p.prod_id, count(s.prod_id)
    FROM products p ______________ sales s
    ON p.prod_id = s.prod_id
    GROUP BY p.prod_id;
    Which two JOIN operations can be used to obtain the required output?
  • Question 25

    Which three queries use valid expressions?