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 to define a procedure inside another procedure?
Explain about achiever in sql?
What are a collation and state the different types of collation sensitivity?
I have a table called 'test' on source and target with same name, structure and data type but in a different column order. How can you setup replication for this table?
How to connect to a remote server?
What are operators in oracle?
What is Java Pool in Oracle?
What is oracle host variable?
How to experiment a data lock in oracle?
How to rollback the current transaction in oracle?
how to make an oracle object
Explain oracle’s system global area (sga).
HI, Please let me know the syllabus for Oracle OCA and OCP Certification
How to create a testing table in oracle?
Explain parameter file in oracle.