SQL>
SQL>
SQL>
SQL> CREATE TABLE employee (
2 id number,
3 name varchar(100),
4 birth_date date,
5 gender varchar2(30) );
Table created.
SQL>
SQL> INSERT INTO employee (id,name,birth_date,gender )VALUES (100,'J',to_date('19230823', 'YYYYMMDD'),'MALE' );
1 row created.
SQL>
SQL> SELECT name
2 FROM employee
3 WHERE birth_date < to_date('19400101', 'YYYYMMDD')
4 ORDER BY name;
NAME
----------------------------------------------------------------------
J
1 row selected.
SQL>
SQL>
SQL> drop table employee;
Table dropped.
SQL>