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

 Q2 please provide answers for these SQL database questions Question 2

Use the tables (Courses and Lessons) below and the employees table in

Q2 please provide answers for these SQL database questions

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] Courses Lessons Code Attendant Subject 2001 DATA DATA JAV 2002 DATA JAV 2003 JAV MATH 2004 JAV ISY Description Duration Campus Database 4 days JHB management systems Java script 7 days Midrand Mathematics 4 days Pretoria Information 3 days Pretoria systems Hyper Text 4 days JHB Markup Language Project 7 days Midrand management DATA 2005 MATH HTML 2006 PMT 2007 ISY PMT eid sname Init Table 1: Employees job dept dob Admin HR 3-12-1980 Office location 2001 Stones S JHB 2002 Johnson K Midrand 2003 Nkosi F Sales 12-4-1991 Accounting 4-6-1978 Training 20-6-1985 Pretoria 2004 Dludla Salesrep Manager Trainer Manager Admin H JHB 2005 Dlamini J HR 7-9-1976 Pretoria 2006 Pale K HR 16-3-1997 Midrand 2007 Peter M Trainer Training 14-4-1969 JHB

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!