Professional Documents
Culture Documents
DBMS 1-1
DBMS 1-1
Question -3: list the employee name and dept. code from table
SQL> SELECT Emp_name,dep_code from EMPLOYEE;
EMP_NAME DEP_CODE
Raju 11
Soumen 13
Subhasish 10
Megha 21
Sudip 27
Manisha 35
Gobinda 25
Srijit 23
Sourav 30
Pranab 29
10 rows selected.
Question -5: list name of the employee not belonging to department 10 and 30
SQL> SELECT Emp_name ,dep_code from EMPLOYEE where Dep_code not IN(10,30);
EMP_NAME DEP_CODE
Raju 11
Soumen 13
Megha 21
Sudip 27
Manisha 35
Gobinda 25
Srijit 23
Pranab 29
8 rows selected.
Question -6:list name of those employee whose name start with s or end with s
SQL> SELECT EMP_name from EMPLOYEE where Emp_name like ('S%') or Emp_name like ('%s');
EMP_NAME
----------
Soumen
Subhasish
Sudip
Srijit
Sourav
Question -7: list the different position available in department table
SQL> SELECT distinct Designation from EMPLOYEE;
DESIGNATION
---------------
MANAGER
SUPERVISOR
PROJCT_MANAGER
ACCOUNT
ASSIT_MANAGER
CLEARK
PEON
7 rows selected