Question: 1
Which two statements are true regarding the COUNT function?
Question: 2
In which three situations does a transaction complete?
Question: 3
View the exhibit and examine the data in ORDERS_MASTER and MONTHLY_ORDERS tables.
ORDERS_MASTER
ORDER_ID
ORDER_TOTAL
1
1000
2
2000
3
3000
4
MONTHLY_ORDERS
ORDER_ID
ORDER_TOTAL
2
2500
3
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: 4
View the exhibit and examine the ORDERS table.
ORDERS
Name
Null?
Type
ORDER ID
NOT NULL
NUMBER(4)
ORDATE DATE
DATE
CUSTOMER ID
NUMBER(3)
ORDER TOTAL
NUMBER(7,2)
The ORDERS table contains data and all orders have been assigned a customer ID. Which statement would add a NOT NULL constraint to the CUSTOMER_ID column?
Question: 5
Examine the structure of the INVOICE table.
NameNull?Type
--------------------------------------------------
INV_NONOT NULLNUMBER(3)
INV_DATEDATE
INV_AMTNUMBER(10,2)
Which two SQL statements would execute successfully?
Answer : A, C
Show Answer
Hide Answer