0% found this document useful (0 votes)
4 views

SQL Question

Uploaded by

tapaskumarmahato
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

SQL Question

Uploaded by

tapaskumarmahato
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Q.

4 Consider the following Table named „empl‟ and Write SQL commands from (a) to (n)

(a) Display all the records from table empl.


(b) Display EmpNo and EName of all employees from the table empl.
(c) Display employee name, salary, and department number who are not getting commission
from table empl.
(d) Display employee number, name, sal*12 as Annual salary whose commission is not NULL
from table empl.
(e) List all department numbers from table empl.
(f) List all unique department numbers from table empl.
(g) List the details of all clerks who have not been assigned department as yet.
(h) Display the details of employees whose name have only four letters.
(i) Display the details of all employee whose annual salary is between 25000 to 40000.
(j) How many job types are offered to employees?
(k) List the employees who earn more commission than their salaries.
(l) Display name, job title and salary of employee who do not have manager.
(m) Display the name of employee whose name contains „A‟ as third letter.
(n) Display the name of employee whose name contains „L‟ as any letter.

You might also like