Answered step by step
Verified Expert Solution
Link Copied!

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,

image text in transcribedimage text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 1 Lncs 8055

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013 Edition

3642402844, 978-3642402845

More Books

Students also viewed these Databases questions

Question

What is meant by decentralisation?

Answered: 1 week ago

Question

Write down the Limitation of Beer - Lamberts law?

Answered: 1 week ago

Question

Discuss the Hawthorne experiments in detail

Answered: 1 week ago

Question

Explain the characteristics of a good system of control

Answered: 1 week ago

Question

State the importance of control

Answered: 1 week ago