Professional Documents
Culture Documents
select last_name, hiredate from employee where hiredate between '01-jan-1995' and '31-dec-1995';
** Display the employee id, last name and the date by annual salary
** Display the employee lastname, jobid and start date of employees hired between
February 20, 1998 and May 1, 1998 order the query in ascending order by start date
select last_name, hiredate from employee where hiredate between '01-jan-1995' and '31-dec-1995';
******************************CONTINUED
Enter password:
Connected to:
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Table created.
SQL>
'98668454','26-jan-2018','45',52000,23,8,96);
1 row created.
SQL> insert into employee values(41,'lask','redy','lask.reddy@gmail.com','965988
8712','2-feb-2019','54',256000,32,6,69);
1 row created.
6','5-apr-2018','65',656000,56,8,12);
1 row created.
SQL>
SQL> select last_name, hiredate from employee where hiredate between january 199
select last_name, hiredate from employee where hiredate between january 1995 and
december 1995
*
ERROR at line 1:
SQL> select last_name, hiredate from employee where hiredate between '01-jan-199
no rows selected
SQL> Select last_name, job_id from employee where job_id not in('it_prog','st_cl
erk','sa_rep');
LAST_NAME JOB_ID
------------------------- -------------------------
keshwar 45
redy 54
red 65
ERROR:
ERROR:
ERROR:
ERROR:
ERROR:
ORA-01756: quoted string not properly terminated
SQL> Select emp_id, last_name, hiredate from employee where salary=624100 and sa
no rows selected
SQL>
SQL> Select emp_id, last_name, hiredate from employee where salary=52000 and sal
no rows selected
14 keshwar 26-JAN-18
41 redy 02-FEB-19
90 red 05-APR-18
SQL>