1. Write a SQL query to list the names all employees and their address who work for the department IT Transformation? 2. Write an SQL query to list the name of the projects which belong to departments that have the string ‘or’ in them (example: Morton)
1. Write a SQL query to list the names all employees and their address who work for the department IT Transformation? 2. Write an SQL query to list the name of the projects which belong to departments that have the string ‘or’ in them (example: Morton)
Principles of Information Systems (MindTap Course List)
12th Edition
ISBN:9781285867168
Author:Ralph Stair, George Reynolds
Publisher:Ralph Stair, George Reynolds
Chapter5: Database Systems And Applications
Section: Chapter Questions
Problem 4PSE: Using a graphics program, develop an entity-relationship diagram for a database application for an...
Related questions
Question
1. Write a SQL query to list the names all employees and their address who work for the department IT Transformation?
2. Write an SQL query to list the name of the projects which belong to departments that have the string ‘or’ in them (example: Morton)

Transcribed Image Text:The image presents a relational database structure for an organizational system, including the following entities and their attributes:
1. **Employee**
- Attributes:
- **empNo** (Primary Key)
- firstName
- lastName
- address
- DOB (Date of Birth)
- sex
- position
- **deptNo** (Foreign Key, referencing Department)
2. **Department**
- Attributes:
- **deptNo** (Primary Key)
- deptName
- **mgrEmpNo** (Foreign Key, referencing Employee as manager)
3. **Project**
- Attributes:
- **projNo** (Primary Key)
- projName
- **deptNo** (Foreign Key, referencing Department)
4. **WorksOn**
- This is a relationship between Employee and Project.
- Attributes:
- **empNo** (Composite Key part, Foreign Key, referencing Employee)
- **projNo** (Composite Key part, Foreign Key, referencing Project)
- hoursWorked
5. **Dependent**
- Attributes:
- **empNo** (Composite Key part, Foreign Key, referencing Employee)
- **Dependent_name** (Composite Key part)
- Sex
- Bdate (Birthdate)
- Relationship
Items in **bold** represent primary keys or composite keys, and those in *italicized red* indicate foreign keys. This design efficiently organizes data related to employees, departments, projects, work assignments, and dependents.
Expert Solution

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 3 steps with 2 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning

Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781305971776
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning

Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781305971776
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning

A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr

Fundamentals of Information Systems
Computer Science
ISBN:
9781337097536
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning