0% found this document useful (0 votes)
17 views1 page

Screenshot

The document outlines various SQL commands and queries related to a database management system (DBMS) for an 'Employee' table. It includes instructions for creating the table and performing data retrieval operations based on specific conditions such as department, designation, salary, and hiring date. The queries also focus on filtering employees based on their commission, job roles, and name characteristics.

Uploaded by

musicfactory2008
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views1 page

Screenshot

The document outlines various SQL commands and queries related to a database management system (DBMS) for an 'Employee' table. It includes instructions for creating the table and performing data retrieval operations based on specific conditions such as department, designation, salary, and hiring date. The queries also focus on filtering employees based on their commission, job roles, and name characteristics.

Uploaded by

musicfactory2008
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

8.

Write the step


9. Write all DDL and DML Commands of DBMS from your Cou
10. Create a table 'Employee' with Fields Emp_Id (Char), Emp_Name (Varchar),
Department (Integer, values 10,20,30,40 and 50)), Mobile(Varchar), Salary
(Integer), Commission (Integer), Designation (Varchar), Joining Month (Varchar).
Select the employees in department 30.
List the names, numbers and departments of all clerks.
Find the department numbers and names of employees of all departments with deptno
greater than 20. Find employees whose commission is greater than their salaries.
Find employees whose commission is greater than 60 % of their salaries.
List name, job and salary of all employees in department 20 who earn more than
20000/-.
Find all salesmen in department 30 whose salary is greater than 15000/-.
Find all employees whose designation is either manager or president.
Find all managers who are not in department 30.
Find all the details of managers and clerks in dept 10.
Find the details of all the managers (in any dept) and clerks in dept 20.
Find the details of all the managers in dept. 10 and all clerks in dept 20 and all
employees who are neither managers nor clerks but whose salary is more than or
equal to 2000/-
Find the names of anyone in dept. 20 who is neither manager nor clerk.
Find the names of employees who earn between 12000/- and 14000/- Find the employees
who are clerks, analysts or salesmen.
Find the employees who are not clerks, analysts or salesmen.
Find the employees who do not receive commission.
Find the different jobs of employees receiving commission.
Find the employees who do not receive commission or whose commission is less than
10000/-
Find all the employees whose total earning is greater than 2000/-.
Find all the employees whose name begin or ends with "M"
Find all the employees whose names contain the letter "M" in any case.
Find all employees whose names are upto 7 characters long and have letter 'R' as
3rd character of their names.
Find all the employees who were hired in the month of February (of any year).
Find all the employees who were hired on last day of the month.
Find all the employees who were hired more than 2 years ago.
Find the managers hired in the year 2003.
Display the names and jobs of all the employees separated by a space.
Display the names of all the employees right aligning them to 15 characters.
Display the names of all the employees padding them to the right up to 15
characters with "*"
Display the names of all the employees with any leading "A".
Display the names of all the employees with any trailing "R".
Display the names of all the employees and position where the string 'AR' occurs in
the name. Display the details of all the employees sorted on the names.

You might also like