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
Which environment variables are absolutely critical in order to run the OUI?
How to use like conditions in oracle?
Describe varray?
what is the use of system.effective.date variable in oracle?
Does oracle partitioning improve performance?
Explain the truncate in oracle?
How to login to the server without an instance?
Can you drop an index associated with a unique or primary key constraint?
Is a rollback possible to any savepoint?
I am using an Oracle 8i Database my data contains Clob data. I am using toad version 7.6 i am able to get the data in toad but unable to extract the data in excel.when trying to extract the data into the excel the toad error says out of memory. Can any body please help me to extract the data through the same toad version. Thanks in advance
What is partitioned table in Oracle?
Why do we use coalesce function in oracle?
How to export data to a csv file?
How to execute a stored procedure in oracle?
What is meant by recursive hints in oracle?