SQL Queries Using MySQL

    COURSE PROJECT
    IS582 COURSE PROJECT Week 2
    MIS582 COURSE PROJECT

    The Course Project will consist of three tasks, each worth 50 points due in Weeks 2, 4, and 6. Successful completion of the iLabs will help you in completing the project tasks.

    Week 2: Task1: SQL Queries Using MySQL (50 Points)

    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 Lastname_Task1_Result.txt.

    When you are done, submit your documents to the Week 2: Course Project Week 2 Task 1 Dropbox.

    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, ect.

    Tutorials to Consult With

    Login MySQL Omnymbus Environment.docx in the folder titled Omnymbus Tutorial Files in Doc Sharing for how to log into the Omnymbus Environment.

    Creating a Database in MySQL Omnymbus Environment.docx in the folder titled Omnymbus Tutorial Files in Doc Sharing for how to create a Database in the Omnymbus Environment. Remember, all work must be done under a database you first create.

    Running SQL Scripts in MySQL Omnymbus Environment.docx in the folder titled Omnymbus Tutorial Files in Doc Sharing for how to create and run your SQL Scripts.

    IS582 COURSE PROJECT Week 2
    MIS582 COURSE PROJECT

    The Course Project will consist of three tasks, each worth 50 points due in Weeks 2, 4, and 6. Successful completion of the iLabs will help you in completing the project tasks.

    Week 2: Task1: SQL Queries Using MySQL (50 Points)

    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 Lastname_Task1_Result.txt.

    When you are done, submit your documents to the Week 2: Course Project Week 2 Task 1 Dropbox.

    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, ect.

    Tutorials to Consult With

    Login MySQL Omnymbus Environment.docx in the folder titled Omnymbus Tutorial Files in Doc Sharing for how to log into the Omnymbus Environment.

    Creating a Database in MySQL Omnymbus Environment.docx in the folder titled Omnymbus Tutorial Files in Doc Sharing for how to create a Database in the Omnymbus Environment. Remember, all work must be done under a database you first create.

    Running SQL Scripts in MySQL Omnymbus Environment.docx in the folder titled Omnymbus Tutorial Files in Doc Sharing for how to create and run your SQL Scripts.

                                                                                                                                                                   Order Now