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...
icon
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)

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.
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
SQL Query
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…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781305971776
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
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
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781337097536
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning