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 / 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 |
What is blob data type in oracle?
What is Public Database Link ?
How to do a full database export?
How to increment dates by 1 in oracle?
src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));
What is an Oracle sequence?
what is Table ?
How to check the oracle tns settings?
Does oracle partitioning improve performance?
WHT ARE THE AGGREATE FUNCTIONS?
How to connect to a remote server?
When does a Transaction end ?