Based on the picture please write an SQL theory for the following (DONT ANSWER THE ACTUAL QUESTION): Write an SQL Query to list the count of unique employees who have either worked for the project name 'Technological Disruption' or ‘Warroom 2030'? Rename the output column as ‘Unique Employee Count’ (Hint: Use the keyword IN. and use Table Joining) Write an SQL Query to list the unique first name, last name and department number of all employees who have daughters named Alexandra born after 6-1-2002. Order by the last name (Hint: using table joining) Write a query to display the Project Name and the average number of hours clocked by employees that work for the project offered by department number 12, 21 or 24? Order the results in the increasing order of the average and rename the column as AvgHoursWorked. (hint: use the keyword IN)
Based on the picture please write an SQL theory for the following (DONT ANSWER THE ACTUAL QUESTION): Write an SQL Query to list the count of unique employees who have either worked for the project name 'Technological Disruption' or ‘Warroom 2030'? Rename the output column as ‘Unique Employee Count’ (Hint: Use the keyword IN. and use Table Joining) Write an SQL Query to list the unique first name, last name and department number of all employees who have daughters named Alexandra born after 6-1-2002. Order by the last name (Hint: using table joining) Write a query to display the Project Name and the average number of hours clocked by employees that work for the project offered by department number 12, 21 or 24? Order the results in the increasing order of the average and rename the column as AvgHoursWorked. (hint: use the keyword IN)
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Based on the picture please write an SQL theory for the following (DONT ANSWER THE ACTUAL QUESTION):
- Write an SQL Query to list the count of unique employees who have either worked for the project name 'Technological Disruption' or ‘Warroom 2030'? Rename the output column as ‘Unique Employee Count’ (Hint: Use the keyword IN. and use Table Joining)
- Write an SQL Query to list the unique first name, last name and department number of all employees who have daughters named Alexandra born after 6-1-2002. Order by the last name (Hint: using table joining)
- Write a query to display the Project Name and the average number of hours clocked by employees that work for the project offered by department number 12, 21 or 24? Order the results in the increasing order of the average and rename the column as AvgHoursWorked. (hint: use the keyword IN)
![The image presents a database schema diagram with five entities detailing an organizational structure. It is suitable for an educational website focusing on database design or management. Each entity in the schema is described along with their attributes, with primary keys emphasized in bold/colored text.
1. **Employee** (`empNo`, firstName, lastName, address, DOB, sex, position, `deptNo`):
- **empNo**: Employee Number (Primary Key)
- firstName: First Name
- lastName: Last Name
- address: Address
- DOB: Date of Birth
- sex: Gender
- position: Job Position
- **deptNo**: Department Number (Foreign Key)
2. **Department** (`deptNo`, deptName, `mgrEmpNo`):
- **deptNo**: Department Number (Primary Key)
- deptName: Department Name
- **mgrEmpNo**: Manager's Employee Number (Foreign Key)
3. **Project** (`projNo`, projName, `deptNo`):
- **projNo**: Project Number (Primary Key)
- projName: Project Name
- **deptNo**: Department Number (Foreign Key)
4. **WorksOn** (`empNo`, `projNo`, hoursWorked):
- **empNo**: Employee Number (Foreign Key)
- **projNo**: Project Number (Foreign Key)
- hoursWorked: Hours Worked
5. **Dependent** (`empNo`, **Dependent_name**, Sex, Bdate, Relationship):
- **empNo**: Employee Number (Foreign Key)
- **Dependent_name**: Name of the Dependent (Primary Key)
- Sex: Gender of the Dependent
- Bdate: Birthdate of the Dependent
- Relationship: Relationship to Employee
This diagram helps visualize the relationships and constraints between various data elements in a typical employee database system. It emphasizes the primary and foreign key constraints essential for database normalization and integrity.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F5322519d-7b19-4c41-9624-ce5f968b0c61%2F6118c902-ea21-47b4-9d71-8055e484ed18%2Fgwsd1z2_processed.png&w=3840&q=75)
Transcribed Image Text:The image presents a database schema diagram with five entities detailing an organizational structure. It is suitable for an educational website focusing on database design or management. Each entity in the schema is described along with their attributes, with primary keys emphasized in bold/colored text.
1. **Employee** (`empNo`, firstName, lastName, address, DOB, sex, position, `deptNo`):
- **empNo**: Employee Number (Primary Key)
- firstName: First Name
- lastName: Last Name
- address: Address
- DOB: Date of Birth
- sex: Gender
- position: Job Position
- **deptNo**: Department Number (Foreign Key)
2. **Department** (`deptNo`, deptName, `mgrEmpNo`):
- **deptNo**: Department Number (Primary Key)
- deptName: Department Name
- **mgrEmpNo**: Manager's Employee Number (Foreign Key)
3. **Project** (`projNo`, projName, `deptNo`):
- **projNo**: Project Number (Primary Key)
- projName: Project Name
- **deptNo**: Department Number (Foreign Key)
4. **WorksOn** (`empNo`, `projNo`, hoursWorked):
- **empNo**: Employee Number (Foreign Key)
- **projNo**: Project Number (Foreign Key)
- hoursWorked: Hours Worked
5. **Dependent** (`empNo`, **Dependent_name**, Sex, Bdate, Relationship):
- **empNo**: Employee Number (Foreign Key)
- **Dependent_name**: Name of the Dependent (Primary Key)
- Sex: Gender of the Dependent
- Bdate: Birthdate of the Dependent
- Relationship: Relationship to Employee
This diagram helps visualize the relationships and constraints between various data elements in a typical employee database system. It emphasizes the primary and foreign key constraints essential for database normalization and integrity.
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY