Oracle Database: SQL Fundamentals I - 1Z1-051 Exam Practice Test

Examine the structure and data in the PRICE_LIST table:
Name Null Type
PROD_ID NOT NULL NUMBER(3)
PROD_PRICE VARCHAR2(10)
PROD_ID PROD_PRICE 100 $234.55
101 $6,509.75
102 $1,234
You plan to give a discount of 25% on the product price and need to display the discount amount in the same format as the PROD_PRICE.
Which SQL statement would give the required result?
Correct Answer: C Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
View the Exhibit and examine the structure of the ORDERS and CUSTOMERS tables.

Evaluate the following SQL command:
SQL> SELECT o.order_id, c.cust_name, o.order_total, c.credit_limit
FROM orders o JOIN customers c
USING (customer_id)
WHERE o.order_total > c.credit_limit
FOR UPDATE
ORDER BY o.order_id;
Which two statements are true regarding the outcome of the above query? (Choose two.)
Correct Answer: A,B Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
Which SQL statement returns a numeric value?
Correct Answer: C Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
View the Exhibit and examine the structure of the PROMOTIONS, SALES, and CUSTOMER tables.
You need to generate a report showing the promo name along with the customer name for all products that were sold during their promo campaign and before 30th October 2007.
You issue the following query:

Which statement is true regarding the above query?
Correct Answer: C Vote an answer
Which two statements are true regarding constraints? (Choose two.)
Correct Answer: A,E Vote an answer
View the Exhibits and examine the structures of the PROMOTIONS and SALES tables.

Evaluate the following SQL statements:

Which statement is true regarding the output of the above query?
Correct Answer: C Vote an answer
Top N analysis requires _____ and _____. (Choose two.)
Correct Answer: C,E Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
You need to extract details of those products in the SALES table where the PROD_ID column contains the string '_D123'. Which WHERE clause could be used in the
SELECT statement to get the required output?
Correct Answer: D Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
For which action can you use the TO_DATE function?
Correct Answer: E Vote an answer
Which one is a system privilege?
Correct Answer: A Vote an answer
Which two statements are true regarding the USING clause in table joins?(Choose two.)
Correct Answer: B,C Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
The STUDENT_GRADES table has these columns:
STUDENT_ID NUMBER(12)
SEMESTER_END DATE
GPA NUMBER(4,3)
Which statement finds the highest grade point average (GPA) per semester?
Correct Answer: A Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
See the Exhibit and examine the structure of the PROMOSTIONS table:
Exhibit:

Which SQL statements are valid? (Choose all that apply.)
Correct Answer: A,B Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).