Question: Q2 please provide answers for this SQL database question Question 2 Use the tables (Courses and Lessons) below and the employees table in question 1.


Q2 please provide answers for this SQL database question
Question 2 Use the tables (Courses and Lessons) below and the employees table in question 1. Write SQL to answer the following questions. 2.1 Provide the course code and description for any courses having a four-day duration. (2 Marks) 2.2 Which courses have been held in JHB and/or in Pretoria? (3 Marks) 2.3 Which employees took both the JAV and the DATA courses? (5 Marks) 2.4 Print a list of all workers who did not attend the JAV training. (5 Marks) [Sub Total 15 Marks] Lessons Attendant Subject DATA 2001 JAV 2002 DATA 2003 JAV Courses Code Description Duration Campus DATA Database 4 days JHB management systems JAV Java script 7 days Midrand MATH Mathematics 4 days Pretoria ISY Information 3 days Pretoria systems HTML Hyper Text 4 days JHB Markup Language PMT Project 7 days Midrand management 2004 JAV DATA 2005 MATH 2006 PMT 2007 ISY Question 1 Oracle databases use structured query language (SQL) for writing and querying data. Consider the Table 1 below: Table 1: Employees eid Init job dept dob Office location sname 2001 Stones S Admin HR 3-12-1980 JHB 2002 Johnson K Midrand 2003 Nkosi F Pretoria Sales 12-4-1991 Accounting 4-6-1978 Training 20-6-1985 HR 7-9-1976 2004 Dludla H Salesrep Manager Trainer Manager Admin Trainer JHB 2005 Dlamini J Pretoria 2006 Pale K HR 16-3-1997 Midrand 2007 Peter M Training 14-4-1969 JHB
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
