|
|
Authorized user can see question and answers. Please log in or sign up. 
|
#21. Examine the data of the EMPLOYEES table. EMPLOYEES (EMPLOYEE_ID is the primary key. MGR_ID is the ID of managers and refers to the EMPLOYEE_ID) Which statement lists the ID, name, and salary of the employee, and the ID and name of the employee's manager, for all the employees who have a manager and earn more than 4000?
Show comments for this question (1)
Add comments
Link to this question
|
|
#24. Evaluate this SQL statement: SELECT c.customer_id, o.order_id, o.order_date, p.product_name FROM customer c, curr_order o, product p WHERE customer.customer_id = curr_order.customer_id AND o.product_id = p.product_id ORDER BY o.order_amount;
This statement fails when executed. Which change will correct the problem?
Show comments for this question (1)
Add comments
Link to this question
|
|
#25. You want to display the titles of books that meet these criteria: 1. Purchased before January 21, 2001 2. Price is less then $500 or greater than $900 You want to sort the results by their data of purchase, starting with the most recently bought book. Which statement should you use?
Show comments for this question (1)
Add comments
Link to this question
|
|
#27. The STUDENT_GRADES table has these columns: STUDENT_ID NUMBER(12)
SEMESTER_END DATE
GPA NUMBER(4,3) The registrar has requested a report listing the students' grade point averages (GPA), sorted from highest grade point average to lowest within each semester, starting from the earliest date. Which statement accomplishes this?
Show comments for this question (1)
Add comments
Link to this question
|
|
#29. Examine the structure of the PRODUCT table. You want to display all product identification numbers of products for which there are 500 or more available for immediate sale. You want the product numbers displayed alphabetically by supplier, then by product number from lowest to highest. Which statement should you use to achieve the required results?
Show comments for this question (1)
Add comments
Link to this question
|
|
|
|
gen. 0.061
|
Server date 07:02 22-11-2008
|
Developed by Zip © 2006
|
|
 |
|
|