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 / ajit

select itemnum,totalcost
from <tab name>
group by cube(itemnum, totalcost);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If youre unsure in which script a sys or system-owned object is created, but you know its in a script from a specific directory, what UNIX command from that directory structure can you run to find your answer?

1665


How a database is related to tablespaces?

588


How to assign a table row to a record variable?

590


What are group functions in oracle?

592


Explain the characteristics of oracle dba?

645






In the oracle version 9.3.0.5.0, what does each number shows?

776


Can a formula column be obtained through a select statement ?

1853


How to use group functions in the select clause using oracle?

603


How do you bind variables in oracle?

559


How to create a table interactively?

574


What is a proxy class?

570


What is the difference between primary key and unique key and foreign key in oracle?

560


What is rich query?

552


Is postgres faster than oracle?

571


what is difference between sql plus and sql*plus? (not sql and sql plus).

3358