Starting from:

$30

MSDS7330- Mini Project 2 Solved


MySQL Database  

  Question 1: Create a database called “University”. Load the data and execute SQL queries..  

I have attached scripts to create the University relations and also to add data. Once you have created the schema and loaded the data. Create SQL queries to answer the following questions:  

1.     Produce a list of all the students in the student relation, including their ID, name and department name, sorted into ascending order by their name.  

2.     Produce a list of the names and salaries of professors in the Comp. Sci. and Elec. Eng. departments ordered by decreasing salary.  

3.     Find all courses whose identifier starts with the string ”CS-1”  

4.     Find the maximum and minimum enrollment across all sections, considering only sections that had some enrollment, don’t worry about those that had no students taking that section  

5.     Create a view faculty showing only the ID, name, and department of instructors.  

6.     Create a view “CSinstructors”, showing all information about instructors from the Comp. Sci. department.  

Capture the sequence of queries and resulting output thereby demonstrating your database in operation. Turn in a pdf of screenshots of your database in operation.  

Collaborators:  

Resources:

More products