Question 116

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 117

    Examine the description of the SALES1 table:

    SALES2is a table with the same description as SALES1.
    Some sales data is duplicated in both tables.
    You want to display the rows from the SALES1table which are not present in the SALES2 table.
    Which set operator generates the required output?
  • Question 118

    Examine the structure of the MEMBERStable:

    You want to display details of all members who reside in states starting with the letter A followed by exactly one character.
    Which SQL statement must you execute?
  • Question 119

    View the Exhibit and examine the structure of the CUSTOMERS table.

    Using the CUSTOMERS table, you must generate a report that displays a credit limit increase of 15% for all customers.
    Customers with no credit limit should have "Not Available" displayed.
    Which SQL statement would produce the required result?
  • Question 120

    Which two are true about granting privileges on objects?