Display the order number and the number of months since the
order was shipped for all orders that have been shipped in
the last year (365 days). (Hint: Unshipped orders will have
a null value).

Answer Posted / ankit

Select Order_num, MONTHS_BETWEEN(SYSDATE,Shipped_date) no_of_months from Table where shipped_date is not null and to_date('sysdate','YYYY') = '2012';

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can we store any pdf file in oracle

1636


How to manage transaction isolation level?

559


What is a subquery in oracle?

574


How to calculate date and time differences in oracle?

528


What are the differences between primary key and unique key?

507






How many types of segments in Oracle?

527


How to execute the package in oracle?

568


What is logical backup in oracle?

574


What is a dead lock in oracle?

587


How to create a table index in oracle?

655


What do you mean by merge in oracle and how can you merge two tables?

522


How to assign a table row to a record variable?

577


What are the restrictions in a oracle read only transaction?

566


Can a formula column be obtained through a select statement ?

1843


What is data block in Oracle?

615