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 the meaning of recursive hints in oracle?
What is the use of file param in imp command?
what are the advantages of running a database in archive log mode?
How many categories of data types?
How to add a new column to an existing table in oracle?
Hi all, Can any one give answer for this question. Suppose im having employee table with fields, eno, ename, dept, address1, address2, address3. In address field employee can fill only address1 or address2 or address3... at a time he can fill three address fields. now i want all employee names who filled only one address field.. Plz its urjent can any one give querry.. Thanks in advance.
what is the dual table in oracle?
I have table-A(1,2,3)& table-B(3,4,5).what is the different b/w below questions? A union all B? B union all A?
Is insert autocommit in oracle?
What language does oracle use?
What is the difference between view and materialized view in Oracle?
i deleted 4 records form the table.after i have applied commit .now i want to get back those records.how?