Query List

1 min read

 Query List

 1. Query to display Employee Name, Job, Hire Date, Employee Number; for each employee with the Employee Number appearing first. 

 Query: 

               Select Eno, Ename, Job_type, Hire_date from EMPLOYEE; 

Output:

2. Query to display unique Jobs from the Employee Table. 

Query: 

 Select DISTINCT Job_type from EMPLOYEE; 

Output:

3. Query to display the Employee Name concatenated by a Job separated by a comma. 

Query: Select Ename||','|| Job_type from EMPLOYEE; 

Output: 

4. Query to display all the data from the Employee Table. Separate each Column by a comma and name the said column as THE_OUTPUT. 

Query: 

Select Eno||','||Ename||','||Job_type||','||Manager||','||Hire_date||','||Dno||','|| Commission||','||Salary AS "THE_OUTPUT" FROM EMPLOYEE; 

Output:

5. Query to display the Employee Name and Salary of all the employees earning more than ₹28500. 
Query: 

Select Ename, Salary from EMPLOYEE where Salary > 28500 or (Salary + Commission) > 28500;  

Output:












You may like these posts

  • Query List36. Query to display the department no, name and job for all employees in the Sales department.  Query: Select e.Dno, e.Ename, e.Job_type from EMPLOYEE e,…
  • Query List26. Query to display Name, Dept No. and Salary of any employee whose department No. and Salary match both the department no. and the salary of any employee who earns a …
  • Query List31. Query to display the Department Name, Location Name, No. of Employees and the average salary for all employees in that department.  Query 1: Select Dn…
  •  Query List16. Query to display Name, Hire Date and Salary Review Date which is the 1st Monday after six months of employment. Query: Select Ename, Hire_date, Salar…
  • Query List21. Query to display Name, Department Name and Department No for all the employees. Query: Select EMPLOYEE.Ename, DEPARTMENT.Dname, EMPLOYEE.Dno from EMPLOYEE …
  •  Query List11. Query to display the Name, Salary and Commission for all the employees who earn commission. Sort the data in descending order of Salary and Commission. Q…

Post a Comment

© 2025DBMS. The Best Codder All rights reserved. Distributed by