Question: #8567

Week 2: Task1: SQL Queries Using MySQL Solution

Week 2: Task1:  SQL Queries Using MySQL

Using the same tables that you created by running the script file provided in Doc Sharing for iLab1, write the following 10 queries each worth 5 points.

Name
    

Task

Query1
    

Write a SQL statement to display the course numbers of classes taught by Hammett Glenn.

Query2
    

Write a SQL statement to display the course names of the courses taught by an instructor whose id is 415.

Query3
    

Write a query to display the name and office number of all

instructors who teach Psy101.(USE NATURAL JOIN)

Query4
    

Write a query to display the semester and the number of courses     

offered in that semester. Display only the semesters that offer

more than five courses.

Query5
    

Write a SQL statement to display the name of each campus and the total number of rooms in that campus.

Query6
    

Write a SQL statement to display the list of instructors who are approved as well as those who are not approved. (OUTER JOIN)

Query7
    

Write a SQL statement to display the start date and start time of

all classes taught by instructor Hammett Glenn.

Query8
    

Write a SQL statement to display the number of students in each major with a status of failing.

Query9
    

Write a SQL statement to display the credit hours of all courses that Hammett Glenn is approved to teach.

Query10
    

Get the campus name and phone number of all rooms with

numbers greater than 25.


Deliverables

Create and save your SQL queries in a script (text file) named Lastname_Task1_Script.sql.

Capture the output and paste it into a text file. Save it as Singh_Task1_Result.txt.

Rubrics

Queries that are correct will be awarded the number of points shown below:

4 points:  Query 1

5 points:   Query 2–9

6 points:   Query 10

The following rubrics will be used for incorrect queries.

0 points: Query was not turned in with the assignment.

-4 points: Query will not run.

-3 points: Query runs but is incorrect because query required a WHERE clause to meet requirements which was not included.

-2 points: Query runs but is incorrect because the WHERE clause contained errors, gives popup for user input, or only meets partial requirements.

Deductions for incorrect form,  format and timeliness.

 

-10 points for not sending in a script that runs on edupe.
-5 points for not sending in a Results file  (it does not matter if the Results got garbled; I can rerun the script;  I just need to know that you have run the script and are able to deliver the results.

-3 points per day late without consulting with the instructor on granting extra time for such things as  illness, emergencies,  Military service, etc.

Solution: #8593

Week 2: Task1: SQL Queries Using MySQL Solution

This Tutorial is rated A+ p...
Tutormaster
Rating: A+ Purchased: 11 x Posted By: Tutormaster
Comments
Posted by: Tutormaster

Online Users