SlideShare a Scribd company logo
1 of 12
Page 3 of 11
Delete this text and type your name here
This file will become rather large due to your screen shots. I
encourage you to compress this file (zip) before submitting it.
Lab 4: 40 Total Points Possible
You will need to log into Apex at https://iacademy.oracle.comin
order to complete this assignment.
Sections 3-4 Programming with SQL
Section 3 Objectives: Executing Database Joins
Create and execute database joinsUse table aliases in SQL
statements
Vocabulary:
Directions: Identify the vocabulary word for each definition
below. (1 Point each)
1. A join that returns the unmatched rows as well as matched
rows.
Answer:
2. Performs a join on two tables, retrieves all the rows in the
left table even if there is no match in the right table.
Answer:
3. A join of two or more tables that return only matched rows.
Answer:
Try It / Solve It:
In order to be successful with this lab, you must review the
‘Oracle Student Tables’ file located under ‘Videos and
Resources’ (multiple tabs across bottom of worksheet). This file
will help you to understand the data that is being manipulated in
the SQL statements.
I amproviding a ‘copy’ (first 20 rows) of the ‘Results from
Apex’ for each question.Hopefully, this will help you see if you
are on track with your results. At the top of your SQL window,
you MUST increase the number of rows displayed to 20 so that I
am able to see the first 20 rows of your results.You will need to
provide the SQL statement you used to produce your results.
DBMS Output
11141129549203
11143605700225
1. Create a query using a LEFT OUTER JOIN that will display
the first name, last name, and department name for all
employees including those employees not assigned to a
department. You will be using the Employees and Departments
tables. Use a table alias in your SQL statement. Execute the
query in Oracle Application Express (Apex). (2 Points)
Select Statement You Used:
My example of correct results from Apex (copy):
Using your print screen option (PrntScr button across top of
keyboard), provide a screen shot of your results below. It is
necessary that I see your 'entire' screen. Your
workspace/username MUST appear in the results to earn credit.
(1 Point)
Your Screenshot below:
DBMS Output
2. Create a query using a RIGHT OUTER JOIN that will display
the first name, last name, and department id for all employees
including those departments that do not have an employee
assigned to them. You will be gathering data from the
Employees and Departments tables. Use a table alias in your
SQL statement. Execute the query in Oracle Application
Express (Apex). (2 Points)
Select StatementYou Used:
My example of correct results from Apex (copy):
DBMS Output
DBMS Output
DBMS Output
Using your print screen option (PrntScr button across top of
keyboard), provide a screen shot of your results below. It is
necessary that I see your 'entire' screen. Your
workspace/username MUST appear in the results to earn credit.
(1 Point)
Your Screenshot below:
3. Create a query using a FULL OUTER JOIN that will display
the first name, last name, and department id for all employees
including those departments that do not have an employee
assigned to them and those employees not assigned to a
department. You will be gathering data from the Employees and
Departments tables. Use a table alias in your SQL statement.
Execute the query in Oracle Application Express (Apex). (2
Points)
Select StatementYou Used:
My example of correct results from Apex (copy):
Using your print screen option (PrntScr button across top of
keyboard), provide a screen shot of your results below. It is
necessary that I see your 'entire' screen. Your
workspace/username MUST appear in the results to earn credit.
(1 Point)
Your Screenshot below:
4. Create a query using a JOIN that will display the employee’s
last name and employee number along with the manager’s last
name and manager number. You will be gathering data from the
Employees table. Label the columns Employee, Emp#, Manager,
and Mgr# using an alias. Use a table alias in your SQL
statement. Execute the query in Oracle Application Express
(Apex). (2 Points)
Select StatementYou Used:
My example of correct results from Apex (copy):
DBMS Output
Using your print screen option (PrntScr button across top of
keyboard), provide a screen shot of your results below. It is
necessary that I see your 'entire' screen. Your
workspace/username MUST appear in the results to earn credit.
(1 Point)
Your Screenshot below:
5. Modify problem 4 and use a LEFT OUTER JOIN to display
all employees, including those who have no manager. Order the
results by the employee number. Use a table alias in your SQL
statement. Execute the query in Oracle Application Express
(Apex). (2 Points)
Select StatementYou Used:
My example of correct results from Apex (copy):
DBMS Output
Using your print screen option (PrntScr button across top of
keyboard), provide a screen shot of your results below. It is
necessary that I see your 'entire' screen. Your
workspace/username MUST appear in the results to earn credit.
(1 Point)
Your Screenshot below:
6. Create a query using a LEFT OUTER JOIN that will display
the first name, last name, event date and description of the
event the client held. You will be gathering data from the
d_clients and d_events tables located in the DJs on Demand
database. Include all clients even if they have not had an event
scheduled. Use a table alias in your SQL statement. Execute the
query in Oracle Application Express (Apex). (2 Points)
Select StatementYou Used:
My example of correct results from Apex (copy):
DBMS Output
11141129549203
11143605700225
Using your print screen option (PrntScr button across top of
keyboard), provide a screen shot of your results below. It is
necessary that I see your 'entire' screen. Your
workspace/username MUST appear in the results to earn credit.
(1 Point)
Your Screenshot below:
7. Create a query using a LEFT OUTER JOIN that will display
the shift description and shift assignment date even if there is
no date assigned for each shift description. You will be
gathering data from the f_shifts and f_shift_assignments tables
located in the Global Fast Foods database. Use a table alias in
your SQL statement. Execute the query in Oracle Application
Express (Apex). (2 Points)
Select StatementYou Used:
My example of correct results from Apex (copy):
DBMS Output
11141129549203
11143605700225
Using your print screen option (PrntScr button across top of
keyboard), provide a screen shot of your results below. It is
necessary that I see your 'entire' screen. Your
workspace/username MUST appear in the results to earn credit.
(1 Point)
Your Screenshot below:
Section 4 Objectives: Working With Group Functions
Create and execute group functions
Vocabulary:
Directions: Identify the vocabulary word for each definition
below. (1 Point each)
1. A command that suppresses duplicates.
Answer:
2. To gather into a sum or whole.
Answer:
3. Returns the sum on numeric columns.
Answer:
4. Used with columns that store any data type to return the
maximum value.
Answer:
Try It / Solve It:
In order to be successful with this lab, you must review the
‘Oracle Student Tables’ file located under ‘Videos and
Resources’ (multiple tabs across bottom of worksheet). This file
will help you to understand the data that is being manipulated in
the SQL statements.
I amproviding a ‘copy’ (first 20 rows) of the ‘Results from
Apex’ for each question. Hopefully, this will help you see if
you are on track with your results. At the top of your SQL
window, you can increase the number of rows displayed. You
will need to provide the SQL statement you used to produce
your results.
1. The manager of Global Fast Foods would like to send out
coupons for an upcoming sale. He wants to send one coupon to
each household (could be more than one customer per
household). Create a query using DISTINCT that displays the
customer's last name and mailing address (address, city, state,
zip). You will gather data from the f_customers table. Execute
the query in Oracle Application Express (Apex). (2 Points)
Select Statement You Used:
My example of correct results from Apex (copy):
Using your print screen option (PrntScr button across top of
keyboard), provide a screen shot of your results below. It is
necessary that I see your 'entire' screen. Your
workspace/username MUST appear in the results to earn credit.
(1 Point)
Your Screenshot below:
2. Create a query that displays the sum of the salaries for
Global Fast Food's staff members whose IDs are 12 and 9. You
will gather data from the f_staffs table. Execute the query in
Oracle Application Express (Apex). (2 Points)
Select Statement You Used:
My example of correct results from Apex (copy):
Using your print screen option (PrntScr button across top of
keyboard), provide a screen shot of your results below. It is
necessary that I see your 'entire' screen. Your
workspace/username MUST appear in the results to earn credit.
(1 Point)
Your Screenshot below:
3. Create a query that will find and display the average salary
for Global Fast Food's staff members whose manager ID is 19.
You will gather data from the f_staffs table. Execute the query
in Oracle Application Express (Apex). (2 Points)
Select Statement You Used:
My example of correct results from Apex (copy):
Using your print screen option (PrntScr button across top of
keyboard), provide a screen shot of your results below. It is
necessary that I see your 'entire' screen. Your
workspace/username MUST appear in the results to earn credit.
(1 Point)
Your Screenshot below:
4. Create a query that will display how many songs are listed in
the DJs on Demand d_songs table. Label the column 'Number of
Songs'. Execute the query in Oracle Application Express
(Apex). (2 Points)
Select Statement You Used:
My example of correct results from Apex (copy):
Using your print screen option (PrntScr button across top of
keyboard), provide a screen shot of your results below. It is
necessary that I see your 'entire' screen. Your
workspace/username MUST appear in the results to earn credit.
(1 Point)
Your Screenshot below:

More Related Content

Similar to Page 3 of 11Delete this text and type your name here This .docx

Part 1 - Microsoft AccessView GlossaryUse Access to create a.docx
Part 1 - Microsoft AccessView GlossaryUse Access to create a.docxPart 1 - Microsoft AccessView GlossaryUse Access to create a.docx
Part 1 - Microsoft AccessView GlossaryUse Access to create a.docxhoney690131
 
Automation Of Reporting And Alerting
Automation Of Reporting And AlertingAutomation Of Reporting And Alerting
Automation Of Reporting And AlertingSean Durocher
 
Change transport system in SAP
Change transport system in SAP Change transport system in SAP
Change transport system in SAP chinu141
 
Question 1 briefly respond to all the following questions. make
Question 1 briefly respond to all the following questions. make Question 1 briefly respond to all the following questions. make
Question 1 briefly respond to all the following questions. make YASHU40
 
Creating a repository using the oracle business intelligence administration tool
Creating a repository using the oracle business intelligence administration toolCreating a repository using the oracle business intelligence administration tool
Creating a repository using the oracle business intelligence administration toolRavi Kumar Lanke
 
The ultimate-guide-to-sql
The ultimate-guide-to-sqlThe ultimate-guide-to-sql
The ultimate-guide-to-sqlMcNamaraChiwaye
 
Apex code-fundamentals
Apex code-fundamentalsApex code-fundamentals
Apex code-fundamentalsAmit Sharma
 
ENGR 131 Elementary Computer ProgrammingTeam IN – Instructor
ENGR 131  Elementary Computer ProgrammingTeam IN – InstructorENGR 131  Elementary Computer ProgrammingTeam IN – Instructor
ENGR 131 Elementary Computer ProgrammingTeam IN – InstructorTanaMaeskm
 
Comp 122 lab 6 lab report and source code
Comp 122 lab 6 lab report and source codeComp 122 lab 6 lab report and source code
Comp 122 lab 6 lab report and source codepradesigali1
 
130297267 transformations
130297267 transformations130297267 transformations
130297267 transformationsSunil Pandey
 
03 laboratory exercise 1
03 laboratory exercise 103 laboratory exercise 1
03 laboratory exercise 1Anne Lee
 
03 laboratory exercise 1 - WORKING WITH CTE
03 laboratory exercise 1 - WORKING WITH CTE03 laboratory exercise 1 - WORKING WITH CTE
03 laboratory exercise 1 - WORKING WITH CTEAnne Lee
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsshyaminfo04
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsash52393
 
Apex code-fundamentals
Apex code-fundamentalsApex code-fundamentals
Apex code-fundamentalsAmit Sharma
 
The ultimate-guide-to-sql
The ultimate-guide-to-sqlThe ultimate-guide-to-sql
The ultimate-guide-to-sqlMcNamaraChiwaye
 
CSCI1250 Project 3 Fall 2015 CSCI1250 INTRODUCTIO.docx
CSCI1250    Project 3  Fall 2015  CSCI1250 INTRODUCTIO.docxCSCI1250    Project 3  Fall 2015  CSCI1250 INTRODUCTIO.docx
CSCI1250 Project 3 Fall 2015 CSCI1250 INTRODUCTIO.docxfaithxdunce63732
 
Useful macros and functions for excel
Useful macros and functions for excelUseful macros and functions for excel
Useful macros and functions for excelNihar Ranjan Paital
 

Similar to Page 3 of 11Delete this text and type your name here This .docx (20)

Pl lab solution
Pl lab solutionPl lab solution
Pl lab solution
 
Part 1 - Microsoft AccessView GlossaryUse Access to create a.docx
Part 1 - Microsoft AccessView GlossaryUse Access to create a.docxPart 1 - Microsoft AccessView GlossaryUse Access to create a.docx
Part 1 - Microsoft AccessView GlossaryUse Access to create a.docx
 
Excel help 01
Excel help 01Excel help 01
Excel help 01
 
Automation Of Reporting And Alerting
Automation Of Reporting And AlertingAutomation Of Reporting And Alerting
Automation Of Reporting And Alerting
 
Change transport system in SAP
Change transport system in SAP Change transport system in SAP
Change transport system in SAP
 
Question 1 briefly respond to all the following questions. make
Question 1 briefly respond to all the following questions. make Question 1 briefly respond to all the following questions. make
Question 1 briefly respond to all the following questions. make
 
Creating a repository using the oracle business intelligence administration tool
Creating a repository using the oracle business intelligence administration toolCreating a repository using the oracle business intelligence administration tool
Creating a repository using the oracle business intelligence administration tool
 
The ultimate-guide-to-sql
The ultimate-guide-to-sqlThe ultimate-guide-to-sql
The ultimate-guide-to-sql
 
Apex code-fundamentals
Apex code-fundamentalsApex code-fundamentals
Apex code-fundamentals
 
ENGR 131 Elementary Computer ProgrammingTeam IN – Instructor
ENGR 131  Elementary Computer ProgrammingTeam IN – InstructorENGR 131  Elementary Computer ProgrammingTeam IN – Instructor
ENGR 131 Elementary Computer ProgrammingTeam IN – Instructor
 
Comp 122 lab 6 lab report and source code
Comp 122 lab 6 lab report and source codeComp 122 lab 6 lab report and source code
Comp 122 lab 6 lab report and source code
 
130297267 transformations
130297267 transformations130297267 transformations
130297267 transformations
 
03 laboratory exercise 1
03 laboratory exercise 103 laboratory exercise 1
03 laboratory exercise 1
 
03 laboratory exercise 1 - WORKING WITH CTE
03 laboratory exercise 1 - WORKING WITH CTE03 laboratory exercise 1 - WORKING WITH CTE
03 laboratory exercise 1 - WORKING WITH CTE
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and strings
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and strings
 
Apex code-fundamentals
Apex code-fundamentalsApex code-fundamentals
Apex code-fundamentals
 
The ultimate-guide-to-sql
The ultimate-guide-to-sqlThe ultimate-guide-to-sql
The ultimate-guide-to-sql
 
CSCI1250 Project 3 Fall 2015 CSCI1250 INTRODUCTIO.docx
CSCI1250    Project 3  Fall 2015  CSCI1250 INTRODUCTIO.docxCSCI1250    Project 3  Fall 2015  CSCI1250 INTRODUCTIO.docx
CSCI1250 Project 3 Fall 2015 CSCI1250 INTRODUCTIO.docx
 
Useful macros and functions for excel
Useful macros and functions for excelUseful macros and functions for excel
Useful macros and functions for excel
 

More from alfred4lewis58146

For this assignment, students will need to observe the activities th.docx
For this assignment, students will need to observe the activities th.docxFor this assignment, students will need to observe the activities th.docx
For this assignment, students will need to observe the activities th.docxalfred4lewis58146
 
For this assignment, select a human service organization from .docx
For this assignment, select a human service organization from .docxFor this assignment, select a human service organization from .docx
For this assignment, select a human service organization from .docxalfred4lewis58146
 
For this Assignment, read the case study for Claudia and find tw.docx
For this Assignment, read the case study for Claudia and find tw.docxFor this Assignment, read the case study for Claudia and find tw.docx
For this Assignment, read the case study for Claudia and find tw.docxalfred4lewis58146
 
For this assignment, download the A6 code pack. This zip fil.docx
For this assignment, download the A6 code pack. This zip fil.docxFor this assignment, download the A6 code pack. This zip fil.docx
For this assignment, download the A6 code pack. This zip fil.docxalfred4lewis58146
 
For this assignment, create infographic using the Canva website..docx
For this assignment, create infographic using the Canva website..docxFor this assignment, create infographic using the Canva website..docx
For this assignment, create infographic using the Canva website..docxalfred4lewis58146
 
For this assignment, compare  California during the Great Depression.docx
For this assignment, compare  California during the Great Depression.docxFor this assignment, compare  California during the Great Depression.docx
For this assignment, compare  California during the Great Depression.docxalfred4lewis58146
 
For this assignment, create a 10- to 12-slide presentation in Mi.docx
For this assignment, create a 10- to 12-slide presentation in Mi.docxFor this assignment, create a 10- to 12-slide presentation in Mi.docx
For this assignment, create a 10- to 12-slide presentation in Mi.docxalfred4lewis58146
 
For this assignment, begin by reading chapters 12-15 in Dr. Bells t.docx
For this assignment, begin by reading chapters 12-15 in Dr. Bells t.docxFor this assignment, begin by reading chapters 12-15 in Dr. Bells t.docx
For this assignment, begin by reading chapters 12-15 in Dr. Bells t.docxalfred4lewis58146
 
For this assignment, assume you are the new Secretary of Homelan.docx
For this assignment, assume you are the new Secretary of Homelan.docxFor this assignment, assume you are the new Secretary of Homelan.docx
For this assignment, assume you are the new Secretary of Homelan.docxalfred4lewis58146
 
For this assignment, address the following promptsIntroductor.docx
For this assignment, address the following promptsIntroductor.docxFor this assignment, address the following promptsIntroductor.docx
For this assignment, address the following promptsIntroductor.docxalfred4lewis58146
 
For this assignment, analyze the play by focusing on one of the .docx
For this assignment, analyze the play by focusing on one of the .docxFor this assignment, analyze the play by focusing on one of the .docx
For this assignment, analyze the play by focusing on one of the .docxalfred4lewis58146
 
For this assignment I would like you to answer these questions.docx
For this assignment I would like you to answer these questions.docxFor this assignment I would like you to answer these questions.docx
For this assignment I would like you to answer these questions.docxalfred4lewis58146
 
For the Weekly Reports I need 2 reports. For the First two weeks the.docx
For the Weekly Reports I need 2 reports. For the First two weeks the.docxFor the Weekly Reports I need 2 reports. For the First two weeks the.docx
For the Weekly Reports I need 2 reports. For the First two weeks the.docxalfred4lewis58146
 
For the shortanswer questions,you will need to respo.docx
For the shortanswer questions,you will need to respo.docxFor the shortanswer questions,you will need to respo.docx
For the shortanswer questions,you will need to respo.docxalfred4lewis58146
 
For the sake of argument (this essay in particular), lets prete.docx
For the sake of argument (this essay in particular), lets prete.docxFor the sake of argument (this essay in particular), lets prete.docx
For the sake of argument (this essay in particular), lets prete.docxalfred4lewis58146
 
For the proposal, each student must describe an interface they a.docx
For the proposal, each student must describe an interface they a.docxFor the proposal, each student must describe an interface they a.docx
For the proposal, each student must describe an interface they a.docxalfred4lewis58146
 
For the project, you will be expected to apply the key concepts of p.docx
For the project, you will be expected to apply the key concepts of p.docxFor the project, you will be expected to apply the key concepts of p.docx
For the project, you will be expected to apply the key concepts of p.docxalfred4lewis58146
 
For the past several weeks you have addressed several different area.docx
For the past several weeks you have addressed several different area.docxFor the past several weeks you have addressed several different area.docx
For the past several weeks you have addressed several different area.docxalfred4lewis58146
 
For the Mash it Up assignment, we experimented with different ways t.docx
For the Mash it Up assignment, we experimented with different ways t.docxFor the Mash it Up assignment, we experimented with different ways t.docx
For the Mash it Up assignment, we experimented with different ways t.docxalfred4lewis58146
 
For the first time in modern history, the world is experiencing a he.docx
For the first time in modern history, the world is experiencing a he.docxFor the first time in modern history, the world is experiencing a he.docx
For the first time in modern history, the world is experiencing a he.docxalfred4lewis58146
 

More from alfred4lewis58146 (20)

For this assignment, students will need to observe the activities th.docx
For this assignment, students will need to observe the activities th.docxFor this assignment, students will need to observe the activities th.docx
For this assignment, students will need to observe the activities th.docx
 
For this assignment, select a human service organization from .docx
For this assignment, select a human service organization from .docxFor this assignment, select a human service organization from .docx
For this assignment, select a human service organization from .docx
 
For this Assignment, read the case study for Claudia and find tw.docx
For this Assignment, read the case study for Claudia and find tw.docxFor this Assignment, read the case study for Claudia and find tw.docx
For this Assignment, read the case study for Claudia and find tw.docx
 
For this assignment, download the A6 code pack. This zip fil.docx
For this assignment, download the A6 code pack. This zip fil.docxFor this assignment, download the A6 code pack. This zip fil.docx
For this assignment, download the A6 code pack. This zip fil.docx
 
For this assignment, create infographic using the Canva website..docx
For this assignment, create infographic using the Canva website..docxFor this assignment, create infographic using the Canva website..docx
For this assignment, create infographic using the Canva website..docx
 
For this assignment, compare  California during the Great Depression.docx
For this assignment, compare  California during the Great Depression.docxFor this assignment, compare  California during the Great Depression.docx
For this assignment, compare  California during the Great Depression.docx
 
For this assignment, create a 10- to 12-slide presentation in Mi.docx
For this assignment, create a 10- to 12-slide presentation in Mi.docxFor this assignment, create a 10- to 12-slide presentation in Mi.docx
For this assignment, create a 10- to 12-slide presentation in Mi.docx
 
For this assignment, begin by reading chapters 12-15 in Dr. Bells t.docx
For this assignment, begin by reading chapters 12-15 in Dr. Bells t.docxFor this assignment, begin by reading chapters 12-15 in Dr. Bells t.docx
For this assignment, begin by reading chapters 12-15 in Dr. Bells t.docx
 
For this assignment, assume you are the new Secretary of Homelan.docx
For this assignment, assume you are the new Secretary of Homelan.docxFor this assignment, assume you are the new Secretary of Homelan.docx
For this assignment, assume you are the new Secretary of Homelan.docx
 
For this assignment, address the following promptsIntroductor.docx
For this assignment, address the following promptsIntroductor.docxFor this assignment, address the following promptsIntroductor.docx
For this assignment, address the following promptsIntroductor.docx
 
For this assignment, analyze the play by focusing on one of the .docx
For this assignment, analyze the play by focusing on one of the .docxFor this assignment, analyze the play by focusing on one of the .docx
For this assignment, analyze the play by focusing on one of the .docx
 
For this assignment I would like you to answer these questions.docx
For this assignment I would like you to answer these questions.docxFor this assignment I would like you to answer these questions.docx
For this assignment I would like you to answer these questions.docx
 
For the Weekly Reports I need 2 reports. For the First two weeks the.docx
For the Weekly Reports I need 2 reports. For the First two weeks the.docxFor the Weekly Reports I need 2 reports. For the First two weeks the.docx
For the Weekly Reports I need 2 reports. For the First two weeks the.docx
 
For the shortanswer questions,you will need to respo.docx
For the shortanswer questions,you will need to respo.docxFor the shortanswer questions,you will need to respo.docx
For the shortanswer questions,you will need to respo.docx
 
For the sake of argument (this essay in particular), lets prete.docx
For the sake of argument (this essay in particular), lets prete.docxFor the sake of argument (this essay in particular), lets prete.docx
For the sake of argument (this essay in particular), lets prete.docx
 
For the proposal, each student must describe an interface they a.docx
For the proposal, each student must describe an interface they a.docxFor the proposal, each student must describe an interface they a.docx
For the proposal, each student must describe an interface they a.docx
 
For the project, you will be expected to apply the key concepts of p.docx
For the project, you will be expected to apply the key concepts of p.docxFor the project, you will be expected to apply the key concepts of p.docx
For the project, you will be expected to apply the key concepts of p.docx
 
For the past several weeks you have addressed several different area.docx
For the past several weeks you have addressed several different area.docxFor the past several weeks you have addressed several different area.docx
For the past several weeks you have addressed several different area.docx
 
For the Mash it Up assignment, we experimented with different ways t.docx
For the Mash it Up assignment, we experimented with different ways t.docxFor the Mash it Up assignment, we experimented with different ways t.docx
For the Mash it Up assignment, we experimented with different ways t.docx
 
For the first time in modern history, the world is experiencing a he.docx
For the first time in modern history, the world is experiencing a he.docxFor the first time in modern history, the world is experiencing a he.docx
For the first time in modern history, the world is experiencing a he.docx
 

Recently uploaded

How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptxJoelynRubio1
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactisticshameyhk98
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationNeilDeclaro1
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 

Recently uploaded (20)

How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactistics
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 

Page 3 of 11Delete this text and type your name here This .docx

  • 1. Page 3 of 11 Delete this text and type your name here This file will become rather large due to your screen shots. I encourage you to compress this file (zip) before submitting it. Lab 4: 40 Total Points Possible You will need to log into Apex at https://iacademy.oracle.comin order to complete this assignment. Sections 3-4 Programming with SQL Section 3 Objectives: Executing Database Joins Create and execute database joinsUse table aliases in SQL statements Vocabulary: Directions: Identify the vocabulary word for each definition below. (1 Point each) 1. A join that returns the unmatched rows as well as matched rows. Answer: 2. Performs a join on two tables, retrieves all the rows in the left table even if there is no match in the right table. Answer: 3. A join of two or more tables that return only matched rows. Answer: Try It / Solve It: In order to be successful with this lab, you must review the ‘Oracle Student Tables’ file located under ‘Videos and Resources’ (multiple tabs across bottom of worksheet). This file will help you to understand the data that is being manipulated in
  • 2. the SQL statements. I amproviding a ‘copy’ (first 20 rows) of the ‘Results from Apex’ for each question.Hopefully, this will help you see if you are on track with your results. At the top of your SQL window, you MUST increase the number of rows displayed to 20 so that I am able to see the first 20 rows of your results.You will need to provide the SQL statement you used to produce your results. DBMS Output 11141129549203 11143605700225 1. Create a query using a LEFT OUTER JOIN that will display the first name, last name, and department name for all employees including those employees not assigned to a department. You will be using the Employees and Departments tables. Use a table alias in your SQL statement. Execute the query in Oracle Application Express (Apex). (2 Points) Select Statement You Used: My example of correct results from Apex (copy):
  • 3. Using your print screen option (PrntScr button across top of keyboard), provide a screen shot of your results below. It is necessary that I see your 'entire' screen. Your workspace/username MUST appear in the results to earn credit. (1 Point) Your Screenshot below: DBMS Output 2. Create a query using a RIGHT OUTER JOIN that will display the first name, last name, and department id for all employees including those departments that do not have an employee assigned to them. You will be gathering data from the Employees and Departments tables. Use a table alias in your SQL statement. Execute the query in Oracle Application Express (Apex). (2 Points) Select StatementYou Used: My example of correct results from Apex (copy): DBMS Output DBMS Output
  • 4. DBMS Output Using your print screen option (PrntScr button across top of keyboard), provide a screen shot of your results below. It is necessary that I see your 'entire' screen. Your workspace/username MUST appear in the results to earn credit. (1 Point) Your Screenshot below: 3. Create a query using a FULL OUTER JOIN that will display the first name, last name, and department id for all employees including those departments that do not have an employee assigned to them and those employees not assigned to a department. You will be gathering data from the Employees and Departments tables. Use a table alias in your SQL statement. Execute the query in Oracle Application Express (Apex). (2 Points) Select StatementYou Used: My example of correct results from Apex (copy): Using your print screen option (PrntScr button across top of keyboard), provide a screen shot of your results below. It is necessary that I see your 'entire' screen. Your workspace/username MUST appear in the results to earn credit. (1 Point)
  • 5. Your Screenshot below: 4. Create a query using a JOIN that will display the employee’s last name and employee number along with the manager’s last name and manager number. You will be gathering data from the Employees table. Label the columns Employee, Emp#, Manager, and Mgr# using an alias. Use a table alias in your SQL statement. Execute the query in Oracle Application Express (Apex). (2 Points) Select StatementYou Used: My example of correct results from Apex (copy): DBMS Output Using your print screen option (PrntScr button across top of keyboard), provide a screen shot of your results below. It is necessary that I see your 'entire' screen. Your workspace/username MUST appear in the results to earn credit. (1 Point) Your Screenshot below: 5. Modify problem 4 and use a LEFT OUTER JOIN to display all employees, including those who have no manager. Order the results by the employee number. Use a table alias in your SQL statement. Execute the query in Oracle Application Express (Apex). (2 Points)
  • 6. Select StatementYou Used: My example of correct results from Apex (copy): DBMS Output Using your print screen option (PrntScr button across top of keyboard), provide a screen shot of your results below. It is necessary that I see your 'entire' screen. Your workspace/username MUST appear in the results to earn credit. (1 Point) Your Screenshot below: 6. Create a query using a LEFT OUTER JOIN that will display the first name, last name, event date and description of the event the client held. You will be gathering data from the d_clients and d_events tables located in the DJs on Demand database. Include all clients even if they have not had an event scheduled. Use a table alias in your SQL statement. Execute the query in Oracle Application Express (Apex). (2 Points) Select StatementYou Used: My example of correct results from Apex (copy):
  • 7. DBMS Output 11141129549203 11143605700225 Using your print screen option (PrntScr button across top of keyboard), provide a screen shot of your results below. It is necessary that I see your 'entire' screen. Your workspace/username MUST appear in the results to earn credit. (1 Point) Your Screenshot below: 7. Create a query using a LEFT OUTER JOIN that will display the shift description and shift assignment date even if there is no date assigned for each shift description. You will be gathering data from the f_shifts and f_shift_assignments tables located in the Global Fast Foods database. Use a table alias in your SQL statement. Execute the query in Oracle Application Express (Apex). (2 Points) Select StatementYou Used: My example of correct results from Apex (copy):
  • 8. DBMS Output 11141129549203 11143605700225 Using your print screen option (PrntScr button across top of keyboard), provide a screen shot of your results below. It is necessary that I see your 'entire' screen. Your workspace/username MUST appear in the results to earn credit. (1 Point) Your Screenshot below: Section 4 Objectives: Working With Group Functions Create and execute group functions Vocabulary: Directions: Identify the vocabulary word for each definition below. (1 Point each) 1. A command that suppresses duplicates. Answer: 2. To gather into a sum or whole. Answer: 3. Returns the sum on numeric columns. Answer:
  • 9. 4. Used with columns that store any data type to return the maximum value. Answer: Try It / Solve It: In order to be successful with this lab, you must review the ‘Oracle Student Tables’ file located under ‘Videos and Resources’ (multiple tabs across bottom of worksheet). This file will help you to understand the data that is being manipulated in the SQL statements. I amproviding a ‘copy’ (first 20 rows) of the ‘Results from Apex’ for each question. Hopefully, this will help you see if you are on track with your results. At the top of your SQL window, you can increase the number of rows displayed. You will need to provide the SQL statement you used to produce your results. 1. The manager of Global Fast Foods would like to send out coupons for an upcoming sale. He wants to send one coupon to each household (could be more than one customer per household). Create a query using DISTINCT that displays the customer's last name and mailing address (address, city, state, zip). You will gather data from the f_customers table. Execute the query in Oracle Application Express (Apex). (2 Points) Select Statement You Used: My example of correct results from Apex (copy): Using your print screen option (PrntScr button across top of keyboard), provide a screen shot of your results below. It is necessary that I see your 'entire' screen. Your
  • 10. workspace/username MUST appear in the results to earn credit. (1 Point) Your Screenshot below: 2. Create a query that displays the sum of the salaries for Global Fast Food's staff members whose IDs are 12 and 9. You will gather data from the f_staffs table. Execute the query in Oracle Application Express (Apex). (2 Points) Select Statement You Used: My example of correct results from Apex (copy): Using your print screen option (PrntScr button across top of keyboard), provide a screen shot of your results below. It is necessary that I see your 'entire' screen. Your workspace/username MUST appear in the results to earn credit. (1 Point) Your Screenshot below: 3. Create a query that will find and display the average salary for Global Fast Food's staff members whose manager ID is 19. You will gather data from the f_staffs table. Execute the query in Oracle Application Express (Apex). (2 Points) Select Statement You Used:
  • 11. My example of correct results from Apex (copy): Using your print screen option (PrntScr button across top of keyboard), provide a screen shot of your results below. It is necessary that I see your 'entire' screen. Your workspace/username MUST appear in the results to earn credit. (1 Point) Your Screenshot below: 4. Create a query that will display how many songs are listed in the DJs on Demand d_songs table. Label the column 'Number of Songs'. Execute the query in Oracle Application Express (Apex). (2 Points) Select Statement You Used: My example of correct results from Apex (copy): Using your print screen option (PrntScr button across top of keyboard), provide a screen shot of your results below. It is necessary that I see your 'entire' screen. Your workspace/username MUST appear in the results to earn credit. (1 Point)