SQL Query 18 APR 2023
SQL Query 18 APR 2023
b) Display employee names for those who joined in the month of Jun.
b) List all the employee names whose basic is greater than 7000 and less than 18000.
Select Ename,Salary from EMP where Salary>7000 and Salary<18000;
ENAME SALARY
Ashim 10000
Asha 8000
3. a) List only the names of all other employees who get the same basic pay as that of employee
"Tamal".
select Ename from EMP where Salary=(Select Salary from EMP where
Ename='Tamal');
ENAME
Tamal
Timir
no data found
5. a) Display employee number, employee name and basic pay for employees with lowest salary.
DESC EMP;
Column Null? Type
ENO NOT NULL CHAR(2)
ENAME - VARCHAR2(10)
CITY - VARCHAR2(10)
SALARY - NUMBER
DNO - NUMBER
JOIN_DATE - DATE
c) List the name and the salary of all employee sorted' by salary.
d) Display the list of all employees who were hired during 2002
6. a) Display employee name and basic pay for all employees who are engaged with at least one
project.