Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Supervision Employee Department Dnumber +- ------ Works-fer---- - - - - - PK Ssn Dname Fname Minit Lname Sex Bdate Address Salary FK1 Dnumber FK2

image text in transcribed

Supervision Employee Department Dnumber +- ------ Works-fer---- - - - - - PK Ssn Dname Fname Minit Lname Sex Bdate Address Salary FK1 Dnumber FK2 SuperSSN Works on PK.FK2 Pnumber *PK,FK1 Ssn HE Worker Controls Hours Project Pnumber od PK Project HA FK1 Plocation Dnumber Pname All the queries must be processed in a single command. (A1) Find employees' names whose salaries are over 28000 and who work for the research department. (A2) For each project, find the department name which controls the project. Sort the output by project name. (A3) Find all employees whose salary is the same as Joyce English's. (A4) Find the average, the largest, and the smallest salary for each department. Print both department names and department numbers. (A5) For each department, find the names of all the projects controlled by the department. Sort the output by each department name and project name. (A6) Show the first name, last name, and the age of each employee who works on projects where the project names begin with 'P'. (Note: you are supposed to derive the integer value of "age." Use TRUC function to produce the integer value of the ages.)

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 Systems For Advanced Applications 27th International Conference Dasfaa 2022 Virtual Event April 11 14 2022 Proceedings Part 2 Lncs 13246

Authors: Arnab Bhattacharya ,Janice Lee Mong Li ,Divyakant Agrawal ,P. Krishna Reddy ,Mukesh Mohania ,Anirban Mondal ,Vikram Goyal ,Rage Uday Kiran

1st Edition

3031001257, 978-3031001253

More Books

Students also viewed these Databases questions