Assignment 3 Submit a Word document with the answers to the following questions. Review Oracle Database 19c: Basic SQL and Oracle Database 19c:

Assignment 3

Submit a Word document with the answers to the following questions.

Review Oracle Database 19c: Basic SQL and Oracle Database 19c: PL/SQL

Search Oracle Live SQL for the HR Objects and Data For Live SQL script. Save the script and execute it. Or use this link to find the script 

Search Oracle Live SQL for the script, SQL Joins script. Execute and study the queries of the script, SQL Joins 

1.         Explain the construction of Statement 1:

SELECT e1.last_name||’ works for ‘||e2.last_name  

   “Employees and Their Managers” 

FROM hr.employees e1, hr.employees e2  

WHERE e1.manager_id = e2.employee_id 

      AND e1.last_name LIKE ‘R%’ 

ORDER BY e1.last_name;

2.         Explain the construction of this statement:

SELECT d.department_id, e.last_name 

FROM hr.departments d, hr.employees e 

WHERE d.department_id = e.department_id(+)

ORDER BY d.department_id, e.last_name;

3.         Execute and explain the construction of the uncorrelated subquery shown in the screenshot: 

-find screenshot and links in the attached document

4.         Execute and explain the construction of the correlated subquery shown in the screenshot: 

-find screenshot and links in the attached document

5.         Explain the difference between a correlated and uncorrelated subquery.

6.         Write a query demonstrating the use of the WHERE clause with a comparison condition (Use a relational operator.). Use the HR database.

7.         Write a query demonstrating the use of the WHERE clause with a logical operator (AND, OR, or NOT) in the condition. Use the HR database.

8.         Write a query demonstrating the use of the WHERE clause with a NULL condition. Use the HR database and the emp_details_view. Hint: The manager_id is NULL for one record in the table.

9.         Write a query demonstrating the use of the WHERE clause with an IN condition. Use the HR database.

10.   Write a query demonstrating the use of the WHERE clause with a compound condition. Use the HR database.

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

Create your Cybersecurity Portfolio Portfolios are an invaluable tool in academic and professional development. They provide a powerful medium for users

Create your Cybersecurity Portfolio Portfolios are an invaluable tool in academic and professional development. They provide a powerful medium for users to efficiently collect and organize artifacts representative of work completed over time. Portfolios offer a means to demonstrate formative and/or summative progress and achievement. Portfolio authors are empowered with tools

Assessment 4: Research Proposal ReportDue date: Week 12Group/individual: IndividualWord count/Time provided: 2000 wordsWeighting: 30%Assessment 4

Assessment 4: Research Proposal ReportDue date: Week 12Group/individual: IndividualWord count/Time provided: 2000 wordsWeighting: 30%Assessment 4 DetailThis assessment requires student to develop a two-page paper with IEEE format based on previousthree assessments. It is expected that student will use this idea for further develop their Capstoneresearch project (Applied Research Project) in

I’ve attached the instructions and PowerPoint template needed for the work. To complete this assignment, you will need the attached files and the Small

I’ve attached the instructions and PowerPoint template needed for the work. To complete this assignment, you will need the attached files and the Small Merchant Guide to Safe Payments documentation (click link to download) from the Payment Card Industry Data Security Standards (PCI DSS) organization. Please read the instructions carefully and ask questions if

Design a BN for a new school building. Attached are three preliminary school blueprints. Each room will only have an instructor computer except

Design a BN for a new school building. Attached are three preliminary school blueprints. Each room will only have an instructor computer except for four labeled computer labs with 30 computers each. Create LANs to group the classrooms (determine how many per LAN by distance and location in the building) for all the teacher’s computers in the lecture halls/rooms. Each

Case Study https://www.dropbox.com/ Case

Case Study Case Study scl/fi/i9s2br812hcrdv1rjp5lc/GGFRT-Case-Study1-2245.pdf?rlkey=hs55yycv4tkk1tlcdxppxvxrs&st=1dyojc6z&dl=0 IT Plan 1 scl/fi/xv8mt8xcm9pjzf0rrtfuk/Mosley-s-IT-Strategic-Plan-GGFRT.docx?rlkey=3il6s7divy98soadjb6iai2di&st=hhu5hkfu&dl=0 IT Plan 2

This assignment is to submit a 12-page report on Cisco’s Vision: A smart +connected world using the working template provided and additionally

This assignment is to submit a 12-page report on Cisco’s Vision: A smart +connected world using the working template provided and additionally answering: ·        Explain the challenges of innovating and implementing new technologies on a large scale in this case.   ·        Telepresence is an innovative technology that requires widespread

Describe which areas and departments should have standards, and what kind of standards they should have. Explain the importance of having different

Describe which areas and departments should have standards, and what kind of standards they should have. Explain the importance of having different standards throughout various departments. Describe relevant agencies and organizations that determine and monitor the standards. Note: Include abstract and use APA style and 2 scholarly references. Deliverable Length: 3-4 pages