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

ERP and ITSM are interconnected in supporting the effective operation of an organisation’s IT infrastructure and business processes. By aligning ERP and IT

ERP and ITSM are interconnected in supporting the effective operation of an organisation’s IT infrastructure and business processes. By aligning ERP and ITSM efforts, organisations can ensure the reliable performance, security, and usability of ERP systems, ultimately driving business efficiency and success. In this assessment, you need to select one

Primary Task Response: Within the Discussion Board area, write 400-600 words that respond to the following questions with your thoughts, ideas, and

Primary Task Response: Within the Discussion Board area, 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 Tyrvainen et al. (2006) article (see the Figure 1 framework) and Grahlmann et al. (2012) article (see the Figure 2

As a final deliverable to the management team, create a Power Point presentation (Should 7-8 slides) that summarizes the solutions outlined in the Key

As a final deliverable to the management team, create a Power Point presentation (Should 7-8 slides) that summarizes the solutions outlined in the Key Assignment template. In addition, describe why the proposed solution is the correct method or mechanism to be implemented. Key Assignment template. Propose an appropriate network infrastructure that

When designing your ePortfolio, you will want to ensure the navigation is intuitive. The artifacts presented in each section of your ePortfolio should

When designing your ePortfolio, you will want to ensure the navigation is intuitive. The artifacts presented in each section of your ePortfolio should demonstrate your understanding of professional and ethical responsibility in relation to cyber security operations and leadership. For this assignment, review your coursework  and identify artifacts that can

Primary Task Response: Write 400–600 words that respond to the following questions with your thoughts, ideas, and comments.  Be substantive and clear, and

Primary Task Response: 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. Before you start this assignment, please read the story entitled Data Breach an All-Too-Often Occurrence. After reviewing the story, conduct research online into

Primary Task Response: Write 400–600 words that respond to the following questions with your thoughts, ideas, and comments. Be substantive and clear, and

Primary Task Response: 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. Before you start this assignment, please read the story entitled The Importance of Knowing Your Own Security Posture.  After reviewing the story, conduct

Assignment Type: Essay (any type) Service: Writing Pages/Words: 5 pages / 1375 words (Double spacing) Education Level: College Language: English (US)  Your

Assignment Type: Essay (any type) Service: Writing Pages/Words: 5 pages / 1375 words (Double spacing) Education Level: College Language: English (US)  Your Deadline: Aug 26, 08:00 PM  Assignment Topic: How to Avoid Being a Victim of Cybercrime Subject: Internet Technology (IT) Sources: 10 sources required Citation Style: APA 7th edition