Question 161

Examine this statement:
CREATE TABTE orders
(sarial_no NUMBER UNIQUE,
order_id NUMBER PRIMARY KEY ,
order_date DATE NOT NULL,
status VARCHAR2 (10) CHECK (status IN ('CREDIT', 'CASH')),
product_id NUMBER REFERENCES products (product_id),
order_ total NUMBER);
On which two columns of the table will an index be created automatically?
  • Question 162

    Examine the structure of the EMPLOYEES table:

    There is a parent/child relationship between EMPLOYEE_ID and MANAGER_ID.
    You want to display the name, joining date, and manager for all employees. Newly hired employees are yet to be assigned a department or a manager. For them, 'No Manager' should be displayed in the MANAGER column.
    Which SQL query gets the required output?
  • Question 163

    View the Exhibit and examine the structure of the EMP table which is not partitioned and not an index- organized table. (Choose two.)

    Evaluate this SQL statement:
    ALTER TABLE emp
    DROP COLUMN first_name;
    Which two statements are true?
  • Question 164

    Evaluate the following two queries:
    SQL> SELECT cust_last_name, cust_city
    FROM customers
    WHERE cust_credit_limit IN (1000, 2000, 3000);
    SQL> SELECT cust_last_name, cust_city
    FROM customers
    WHERE cust_credit_limit = 1000 or cust_credit_limit = 2000 or
    cust_credit_limit = 3000
    Which statement is true regarding the above two queries?
  • Question 165

    Table EMPLOYEES contains columns including EMPLOYEE_ID, JOB_ID and SALARY.
    Only the EMPLOYEE_ID column is indexed.
    Rows exist for employees 100 and 200.
    Examine this statement:

    Which two statements are true? (Choose two.)