2. Display the item number and total cost for each order
line (total cost = no of items X item cost). Name the
calculated column TOTAL COST.
Answer Posted / girija.112
ANS:
SELECT ITEM_NO , NO_OF_ITEMS*INDIVIDUAL_ITEM_COST AS "TOTAL COST"
FROM ITEM_TABLE
ITEM_NO TOTAL COST
1001 30000
1002 40000
1003 72000
1004 100000
1006 40000
1007 60000
1008 80000
1009 -
1010 56000
I have assumed that ITEM_NO, NO_OF_ITEMS &
INDIVIDUAL_ITEM_COST columns are in a single table ITEM_TABLE
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Assuming that you are an End User How to find that in the payment Batch some of the Invoice was Missing To pay How to find That??
Will you be able to store pictures in the database?
Differentiate between function and procedure in oracle.
How to assign query results to variables?
State any two functions of oracle?
How to pass parameters to procedures?
How to return top 5 rows in oracle?
What are the four Oracle system processes that must always be up and running for the database to be useable?
How to use null as conditions in oracle?
What are the original export and import utilities?
What are the extensions used by oracle reports?
1) Does oracle have any table which contain all the exceptions and it's code internally?
Query to retrieve record for a many to many relationship ?
What exactly do quotation marks around the table name do?
Explain the use of file option in exp command.