Question 146

Examine the business rule:
Each student can work on multiple projects and each project can have multiple students.
You need to design an Entity Relationship Model (ERD) for optimal data storage and allow for generating reports in this format:
STUDENT_ID FIRST_NAME LAST_NAME PROJECT_ID PROJECT_NAME PROJECT_TASK
Which two statements are true in this scenario? (Choose two.)
  • Question 147

    View the Exhibit and examine the data in ORDERS_MASTER and MONTHLYjDRDERS tables.

    Evaluate the following MERGE statement:
    MERGE INTO orders_master o USING monthly_orders m ON (o.order_id = m.order_id) WHEN MATCHED THEN UPDATE SET o.order_total = m.order_total DELETE WHERE (m.order_total IS NULL) WHEN NOT MATCHED THEN
    INSERT VALUES (m.order_id, m.order_total);
    What would be the outcome of the above statement?
  • Question 148

    Examine the description of the EMPLOYEES table:

    Which two queries return rows for employees whose manager works in a different department?
  • Question 149

    Examine the structure proposed for the TRANSACTIONStable:

    Which two statements are true regarding the storage of data in the above table structure? (Choose two.)
  • Question 150

    Examine the commands used to create the DEPARTMENT_DETAILS and the COURSE-DETAILS tables:
    SQL> CREATE TABLE DEPARTMfiNT_DETAILS
    DEPARTMENT_ID NUMBER PRIMARY KEY ,
    DEPARTMEHT_NAME VARCHAR2(50) ,
    HOD VARCHAP2(50));
    SQL> CREATE TABLE COURSE-DETAILS
    (COURSE ID NUMBER PRIMARY KEY ,
    COURS_NAME VARCHAR2 (50) ,
    DEPARTMEHT_ID NUMBER REFERENCES DEPARTMENT_DETAIL
    You want to generate a list of all department IDs along with any course IDs that may have been assigned to them.
    Which SQL statement must you use?