|
|
Authorized user can see question and answers. Please log in or sign up. 
|
#33. Examine the structure of the LINE_ITEM table. You must display the order number, line item number, product identification number, and quantity of each item where the quantity ranges from 10 through 100. The order numbers must be in the range of 1500 through 1575. The results must be sorted by order number from lowest to highest and then further sorted by quantity from highest to lowest. Which statement should you use to display the desired result?
Show comments for this question (1)
Add comments
Link to this question
|
|
#34. The ITEM table contains these columns: ITEM_ID NUMBER(9)
COST NUMBER(7,2)
RETAIL NUMBER(7,2) You need to create a report that displays the cost, the retail price, and the profit for item number 783920. To calculate the profit, subtract the cost of the item from its retail price, and then deduct an administrative fee of 25 percent of this derived value. Which SELECT statement produces the desired results?
Show comments for this question (1)
Add comments
Link to this question
|
|
#35. The ITEM table contains these columns: ITEM_ID NUMBER(9)
COST NUMBER(7,2)
RETAIL NUMBER(7,2) The RETAIL and COST columns contain values greater than zero. Evaluate these two SQL statements: 1. SELECT item_id, (retail * 1.25) + 5.00 - (COST * 1.10) - (COST * .10) AS Calculated Profit FROM item;
2. SELECT item_id, retail * 1.25 + 5.00 - COST * 1.10 - COST * .10 "Calculated Profit" FROM item;
What will be the result?
Show comments for this question (1)
Add comments
Link to this question
|
|
#36. The EMP table contains these columns: LAST NAME VARCHAR2(25)
SALARY NUMBER(6,2)
DEPARTMENT_ID NUMBER(6) You need to display the employees who have not been assigned to any department. You write the SELECT statement: SELECT LAST_NAME, SALARY, DEPARTMENT_ID FROM EMP WHERE DEPARTMENT_ID = NULL;
What is true about this SQL statement?
Show comments for this question (1)
Add comments
Link to this question
|
|
#39. The ACCOUNT table contains these columns: ACCOUNT_ID NUMBER(12)
PREVIOUS_BALANCE NUMBER(7,2)
PAYMENTS NUMBER(7,2)
NEW_PURCHASES NUMBER(7,2)
CREDIT_LIMIT NUMBER(7) You need to display the account number, finance charge, and current balance for accounts 1500 through 2000 with a current balance greater than the account's credit limit. The finance charge is .9 percent (.009) of the previous balance. Adding the previous balance value,new purchases value, and finance charge value, and then subtracting the payments value yields the current balance value. Evaluate this statement: SELECT account_id, NVL(previous_balance, 0) * .009 finance_charge, NVL(new_purchases, 0) + (NVL(previous_balance, 0) * 1.009) - NVL(payments, 0) CURRENT balance FROM account WHERE (new_purchases + (previous_balance * 1.009)) - payments > credit_limit AND account_id BETWEEN 1500 AND 2000;
Which statement about this SELECT statement is true?
Show comments for this question (0)
Add comments
Link to this question
|
|
|
|
gen. 0.555
|
Server date 10:29 22-11-2008
|
Developed by Zip © 2006
|
|
 |
|
|