Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Question 1) Show all employees whose current job has a max salary of at least 9000. Display the employee id, full name, job title and

image text in transcribed

Question 1) Show all employees whose current job has a max salary of at least 9000. Display the employee id, full name, job title and max salary. Sort the results by the largest max salary first.

Question 2) Make a query which shows us the job histories of the employees with the following employee id's: 176, 200, 101, and 102. Show the full name, job title, job ID, the date the job ended, and the maximum salary of that job. Order the results by Last Name in descending order and then order by End Date from oldest date to newest.

Question 3) Make a list of employee ID's beside the country name their department is located in.

Question 4) Select all departments whose location is in the Europe Region. Display the department name, city name, country name, and region name.

Question 5) Show all location ids and City names of all locations that do not have a department and are not in the country of Mexico.

Question 6) Using a SET command, show all the countries in region 1 that do not have a location. Display only the country_id.

Question 7) Show all of the department managers who work in Seattle. Your report should include their manager ID, full name, department name and the city name.

Question 8) Show all the Department Names, along with their manager's full names, job titles and salaries. Note: Department's without a manager will not be shown.

Question 9) Using a SET operator, Display all names that are used both as a last name and a first name. Example: Jackson Daniel, Peter Jackson We want to display the name Taylor because it is used in both columns.

Question 10) Display country name and city name. Only show countries without a city and cities without a country.

Employees ot OH PK employee id -Attached first_name Jobs last_name OH PK job id Job_History email PK Manages employee id [FK) Hired job_title Detailed phone_number min_salary PK start date hire_date max_salary end_date job_id [FK] department_id [FK] salary job_id [FK] commission_pct manager_id [FK] Departments oh PK department id Ho -Associated department_id [FK] department_name Locations manager_id [FK] Heads PK location id location_id [FK] po-Located street_address Regions postal_code PK region id Ito -Grouped Countries city PK country_id Ho-Resides region_name state_province country_name country_id [FK) region_id [FK]

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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students explore these related Databases questions

Question

If f: X is increasing, -f: X is decreasing.

Answered: 3 weeks ago

Question

Define organisational jargon.

Answered: 3 weeks ago

Question

5. If yes, then why?

Answered: 3 weeks ago

Question

3. What changes should I be making?

Answered: 3 weeks ago