You are on page 1of 2

1. List the order no & day on which client place their order.

SQL> select order_no,to_char(order_date,'day') from sales_order;

ORDER_ TO_CHAR(O
------ ---------
19001O saturday
19002O friday
46865O wednesday
19003O saturday
46866O thursday
19008O monday

6 rows selected.

2. List the month & date when the order must be delivered.

SQL> select to_char(delydate,'month'), delydate from sales_order


2 order by to_char(delydate,'month');

TO_CHAR(D DELYDATE
--------- ---------
april 07-APR-02
february 20-FEB-02
july 20-JUL-02
july 26-JUL-02
june 27-JUN-02
may 22-MAY-02

6 rows selected.
3. List the orderdate in format ‘DD-Month-YY’.

SQL> select to_char(order_date,'DD-Month-YY') from sales_order;

TO_CHAR(ORDER_D
---------------
12-June -04
25-June -04
18-February -04
03-April -04
20-May -04
24-May -04

6 rows selected.

4. List the date, 15 days after todays date.

SQL> select sysdate+15 from dual;

SYSDATE+1
---------
23-APR-11

You might also like