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

Description Deliverable Length: 3 pages Develop a facts and assumptions information paper about a core issue dealing with 1 of the following:

Description Deliverable Length: 3 pages Develop a facts and assumptions information paper about a core issue dealing with 1 of the following: TechnologyVulnerability assessment and protectionIntellige Description Deliverable Length: 3 pages Develop a facts and assumptions information paper about a core issue dealing with 1 of the following: Technology Vulnerability assessment

Write 400-600 words that respond to the following questions with your thoughts, ideas, and comments. Be substantive and clear, and use examples to

Write 400-600 words that respond to the following questions with your thoughts, ideas, and comments. Be substantive and clear, and use examples to reinforce your ideas. Read the Young and McConkey (2012) article and Otto (2011) articles about data governance and data quality. Read the Abraham et al (2019) articles to understand their governance framework (specifically

Update the Enterprise Content Management and Data Governance Policies and Procedures Manual title page with a new date and project name. Update the

Update the Enterprise Content Management and Data Governance Policies and Procedures Manual title page with a new date and project name. Update the previously completed sections based on instructor feedback. Suggested Headings for Data Governance Evaluation Basis Breakdown outcomes of governance (good and bad) and how their organizations should consider

 Assessment 3 Detail Python Programming Assessment: Restaurant Menu Management System This assessment evaluates your ability to utilise Python’s data

 Assessment 3 Detail Python Programming Assessment: Restaurant Menu Management System This assessment evaluates your ability to utilise Python’s data structures and functions to create a menu management system for a restaurant. Project Objective: Develop a Python program that simulates a restaurant menu using functions and data structures. This program will

Assessment 3 Detail Python Programming Assessment: Restaurant Menu Management System This assessment evaluates your ability to utilise Python’s data

Assessment 3 Detail Python Programming Assessment: Restaurant Menu Management System This assessment evaluates your ability to utilise Python’s data structures and functions to create a menu management system for a restaurant. Project Objective: Develop a Python program that simulates a restaurant menu using functions and data structures. This program will

Write 400-600 words that respond to the following questions with your thoughts, ideas, and comments. Be substantive and clear, and use examples to

Write 400-600 words that respond to the following questions with your thoughts, ideas, and comments. Be substantive and clear, and use examples to reinforce your ideas. Read the Helms and Nixon (2010) article (specifically about analysis) and Han (2004) article (specifically section 2) and Pereira et al. (2012) article.  Discuss and contrast a method of