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
How do I reset a sequence in oracle?
What is sharded cluster?
What is the difference between count (*), count (expression), count (distinct expression)?
How to download oracle database 10g xe?
Can you drop an index associated with a unique or primary key constraint?
WHAT IS ecc 6.0
What is ADDM Advisor in Oracle?
Explain integrity constraints?
Does facebook use oracle?
How to define a variable to match a table column data type?
what's query optimization and without use of IN AND Exist can we get another way data from query
How to delete an existing row from a table in oracle?
What is transport network substrate (tns) in oracle?
How to define an oracle sub procedure?
What happens to the current transaction if the session is ended?