Using Employees and Departments tables: a. Write a query that will display the First_Name and Department_Name of all employees even if there is no department assigned to them. Restrict the output whose commission_pct has a s no value. b. Explain any two types of Joins with an example.

Database Systems: Design, Implementation, & Management
12th Edition
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Carlos Coronel, Steven Morris
Chapter7: Introduction To Structured Query Language (sql)
Section: Chapter Questions
Problem 66P
icon
Related questions
Question

Query design by referring the following scenario.
Scenario
company has a huge database to handle their employees’ details.
Most of the details regarding the employee activities and department details are stored in Employees
table and Departments table. Write the appropriate query to support the manager to complete the
following:

Using Employees and Departments tables:
a. Write a query that will display the First_Name and Department_Name of all employees even
if there is no department assigned to them. Restrict the output whose commission_pct has a
s no
value.
b. Explain any two types of Joins with an example.
Transcribed Image Text:Using Employees and Departments tables: a. Write a query that will display the First_Name and Department_Name of all employees even if there is no department assigned to them. Restrict the output whose commission_pct has a s no value. b. Explain any two types of Joins with an example.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Decision Table
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
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
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr