Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. You have to write five queries those will be useful for decision making by HR management and/or Financial management using the HR Schema given

1. You have to write five queries those will be useful for decision making by HR management and/or Financial management using the HR Schema given below. 2. Write SQL for the above five queries

Just write down five queries as HR head.. I will handle the rest.

image text in transcribed

\( \begin{array}{lll}\text { Schema Title } & \text { Schema Relation } & \\ \text { HR Schema } & \square \text { regions: } & \text { (region_id, region_name) } \\ \text { Student Schema } & \square \text { countries: } & \text { (country_id, country_name, region_id) } \\ & \square \text { locations: } & \text { (location_id, street_address, postal_code, city, state_province, country_id) } \\ & \square \text { departments: } & \text { ( department_id, department_name, manager_id, location_id) } \\ & \square \text { jobs: } & \text { (job_id, job_title, min_salary, max_salary) } \\ & \square \text { employees: } & \text { (employee id, first_name, last_name, email, phone_number, hire_date, job_id, salary, commission_pct, manager_id, } \\ & & \text { department_id) } \\ & & \text { (employee } i d, \text { job_id, start_date, end_date, department_id) }\end{array} \) \( \begin{array}{lll}\text { Schema Title } & \text { Schema Relation } & \\ \text { HR Schema } & \square \text { regions: } & \text { (region_id, region_name) } \\ \text { Student Schema } & \square \text { countries: } & \text { (country_id, country_name, region_id) } \\ & \square \text { locations: } & \text { (location_id, street_address, postal_code, city, state_province, country_id) } \\ & \square \text { departments: } & \text { ( department_id, department_name, manager_id, location_id) } \\ & \square \text { jobs: } & \text { (job_id, job_title, min_salary, max_salary) } \\ & \square \text { employees: } & \text { (employee id, first_name, last_name, email, phone_number, hire_date, job_id, salary, commission_pct, manager_id, } \\ & & \text { department_id) } \\ & & \text { (employee } i d, \text { job_id, start_date, end_date, department_id) }\end{array} \)

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

Step: 3

blur-text-image

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

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

More Books

Students also viewed these Databases questions

Question

Briefly explain how the decision tree algorithm works.

Answered: 1 week ago