Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write SQL for the following questions: USE HR DATABASE 1. To List the first ten rows from the employee table. 2. To List First Name,
Write SQL for the following questions: USE HR DATABASE 1. To List the first ten rows from the employee table. 2. To List First Name, Last Name, email, and phone number for emeloveenin (use the employee id you noted in earlier screen output). 3. Display first Name and last Name together with alias as "Employee Name x xor the first ten rows of employee table. The display should be like this. For example, output should be "JOHN LEAVER" 4. To Display first Name, last Name, and department name for empleveerid , use alias name for each table you are joining. 5. Display all the department details in the department table, including country and region names for all the departments. 6. Display total employees in each department, each region, and each country. Display the rows in order by total employees. (Need three separate SQL's, Need to Join multiple tables) 7. Write a query to display the first and last name, email, salary from employee table for the managernd and salary between 2000 and 3000. 8. Write a query to display first name, last name year of experience. department name for the departmentid. 9. Write a query to increase 8% salary for employees making salary between 3000-4000 and experience in the company is equal to 5 or more. 10. Write a query to provide 2% of salary as commission for employees who do not have commission and salary >5000
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started