Question: 4. Create the following table to compose the SQL queries below. The tables only show a subset of the data hence, your SQL querics answers

 4. Create the following table to compose the SQL queries below.

4. Create the following table to compose the SQL queries below. The tables only show a subset of the data hence, your SQL querics answers should assume the tables contain more data rows. ENROLLMENT ENROLLMENT enrollment id|course name |age 20 30 40 50 60 70 CINS 101 CINS 201 CINS 101 CINS 101 CINS 201 CINS 301 34 30 18 student status active eave leave active robatiorn active 34 a. Show the complete SQL query that uses the aggregate function which displays a summarized average age amount grouped by course name, ofonly the students having a student status of "leave". In other words, for cach course name display the course name with its average student age b. Add only the additional SQL line of code need to further filter the summarized data such that courses with a class average age of 25 or more are removed from the output. Show the full command along with its output Show the SQL query that uses an aggregate function to display the number of rows table ENROLLMENT contains. The query c. should NOT display the values from all the rows. 4. Create the following table to compose the SQL queries below. The tables only show a subset of the data hence, your SQL querics answers should assume the tables contain more data rows. ENROLLMENT ENROLLMENT enrollment id|course name |age 20 30 40 50 60 70 CINS 101 CINS 201 CINS 101 CINS 101 CINS 201 CINS 301 34 30 18 student status active eave leave active robatiorn active 34 a. Show the complete SQL query that uses the aggregate function which displays a summarized average age amount grouped by course name, ofonly the students having a student status of "leave". In other words, for cach course name display the course name with its average student age b. Add only the additional SQL line of code need to further filter the summarized data such that courses with a class average age of 25 or more are removed from the output. Show the full command along with its output Show the SQL query that uses an aggregate function to display the number of rows table ENROLLMENT contains. The query c. should NOT display the values from all the rows

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!