1z0-071 試験問題 31

View the exhibit and examine the structure of the SALES, CUSTOMERS, PRODUCTS and TIMES tables.

The PROD_ID column is the foreign key in the SALES tables, which references the PRODUCTS table.
Similarly, the CUST_ID and TIME_ID columns are also foreign keys in the SALES table referencing the CUSTOMERS and TIMES tables, respectively.
Evaluate the following CREATE TABLE command:
CREATE TABLE new_sales (prod_id, cust_id, order_date DEFAULT SYSDATE)
AS
SELECT prod_id, cust_id, time_id
FROM sales;
Which statement is true regarding the above command?
  • 1z0-071 試験問題 32

    展示物を表示し、PRODUCTS テーブルと SALES テーブルを調べます。

    次のクエリを発行して、農産物名とその製品が販売された回数を表示します。
    SQL>SLECT p. PROD_name、i . アイテム_cnt
    FROM (SELECT prod_id =, count (*) item_cnt
    FROMmの売上
    GROUP BY prod_id) I RIGHT OUTER JION 製品 p
    私に。prod_id =.prod_id;
    上記のステートメントを実行すると何が起こるでしょうか?
  • 1z0-071 試験問題 33

    Examine the structure of the EMPLOYEES table.

    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?
  • 1z0-071 試験問題 34

    View and Exhibit and examine the structure and data in the INVOICE table. (Choose two.)

    Which two statements are true regarding data type conversion in query expressions?
  • 1z0-071 試験問題 35

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

    You must select the ORDER_ID of the order that has the highest total value among all the orders in the ORDER_ITEMS table.
    Which query would produce the desired result?