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

Suppose that a certain basketball superstar has a 73.1% free throw percentage (that is, they make 73.1% of the free throws they attempt). Assume free

Suppose that a certain basketball superstar has a 73.1% free throw percentage (that is, they make 73.1% of the free throws they attempt). Assume free throw shots are independent from each other.If the basketball player is about to shoot 8 free throws, what is the probability that they miss at least 1 free throw shot? Give your answer rounded to four

Select one of the topics below: Autonomic computing Grid computing Nanotechnology N-tier client/server architectures On-demand computing Service-oriented

Select one of the topics below: Autonomic computing Grid computing Nanotechnology N-tier client/server architectures On-demand computing Service-oriented architecture (SOA) Storage area networks (SANs) Virtualization Write a research paper on the real-world application of the chosen technology. Your paper should include the type of organization(s) that benefits most from this technology.

Rubric for Assignment-3 Logical Data ModelInstructions:Draw a logical data model (ERD) for the Picnics R US case [Refer to ‘Assignment#1’

Rubric for Assignment-3 Logical Data ModelInstructions:Draw a logical data model (ERD) for the Picnics R US case [Refer to ‘Assignment#1’ and‘Assiignment#2’ on Canvas under ‘Assignments’]Rubric: 30% – Identify the entities 15% – Add appropriate attributes for each entity 15% – Assign identifies for each entity 15% – Draw the relationships