Advertisement
vladimirVenkov

DB task

Sep 14th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.90 KB | None | 0 0
  1. -- Write a SQL query to find all information about all departments (use "TelerikAcademy" database).
  2. -- Write a SQL query to find all department names.
  3. -- Write a SQL query to find the salary of each employee.
  4. -- Write a SQL to find the full name of each employee.
  5. -- Write a SQL query to find the email addresses of each employee (by his first and last name). Consider that the mail domain is telerik.com. Emails should look like “John.Doe@telerik.com". The produced column should be named "Full Email Addresses".
  6. -- Write a SQL query to find all different employee salaries.
  7. -- Write a SQL query to find all information about the employees whose job title is “Sales Representative“.
  8. -- Write a SQL query to find the names of all employees whose first name starts with "SA".
  9. -- Write a SQL query to find the names of all employees whose last name contains "ei".
  10. -- Write a SQL query to find the salary of all employees whose salary is in the range [20000…30000].
  11. -- Write a SQL query to find the names of all employees whose salary is 25000, 14000, 12500 or 23600.
  12. -- Write a SQL query to find all employees that do not have manager.
  13. -- Write a SQL query to find all employees that have salary more than 50000. Order them in decreasing order by salary.
  14. -- Write a SQL query to find the top 5 best paid employees.
  15. -- Write a SQL query to find all employees and their address.
  16. -- Write a SQL query to find all employees that have manager, along with their manager.
  17. -- Write a SQL query to find all employees that have manager, along with their manager and their address.
  18. -- Write a SQL query to find all departments and all town names as a single list.
  19. -- Write a SQL query to find all the employees and the manager for each of them along with the employees that do not have manager.
  20. -- Write a SQL query to find the names of all employees from the departments "Sales" and "Finance" whose hire year is between 1995 and 2005.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement