database systems project

 

Course Project Phase 1

Summary: SQL Queries Using MySQL DBMS.  demonstration for the MySQL DBMS, and general background for your Course Project Ph1. 

Deliverables:

SQL File as follows: YourLastName_Project_Ph1_Query.sql. File must contain SELECT statement and required clauses to address the required tasks note below (Query 1-10).

MS Word as follows: YourLastName_Project_Ph1_Output. This file contains the queries and outputs.

Zipped file, students are required to upload a ZIP file containing these two documents.

Required Software:

MySQL DBMS by Oracle. MySQL Community Server and MySQL Workbench.

Lab Steps:

Step 1:  Download and install the MySQL DBMS System by Oracle. Follow the step-by-step instructions attached to install the MySQL DBMS in your computer. Also, reference the supplemental  text: Available for Free download as part of our UC Library.  MySQL  Database Usage & Administration. (2010). By Vaswani , Vikram. McGraw Hill. ISBN: 978-0-07-160550-2.  Link to UC Library: 

Follow the Step-by-Step instructions attached, to install  MySQL  in your computer attached as follows: ” Instructions  to Install  MySQL . pdf “. 

Step 2: Create a MySQL Database. Watch the attached video, Course Project Ph1 VIDEO.mp4, with instructions/demonstrations to create a database using MySQL. Also, reference the supplemental text: Available for Free download as part of our UC Library.  MySQL Database Usage & Administration. (2010). By Vaswani, Vikram. McGraw Hill. ISBN: 978-0-07-160550-2.  Link to UC Library:    This textbook provides supplemental information to install MySQL and how to create a database. Download the file Project_ph1_ScriptMySQL. File attached. 

Step 3: Run the Script File in MySQL.

Step 4: Create SQL SELECT Queries

Using the data provided for you in the Student table in the database, formulate a SQL script file named YourLastName_Project_Ph1_Query.sql. This file would contain queries to execute each of the tasks required below.

Be sure to read and reference the dialect presented by MySQL, as it is unique and special in our space of SQL programming. Be sure to read/reference the supplemental text: Available for Free download as part of our UC Library.  MySQL Database Usage & Administration. (2010). By Vaswani, Vikram. McGraw Hill. ISBN: 978-0-07-160550-2. 

Once you run each query, save and past the output in a MS Word document. Name your file YourLastName_Project_Ph1_Output.

Query # 1Write a SQL statement to produce output as follows: Students First and Last Name.

Query # 2Write a SQL statement to produce output as follows: the Major of the STUDENT with no duplications. Do not display student names. 

Query # 3Write a SQL statement to produce output as follows: First and Last Name of students who live in the Zip code 32828. 

Query # 4Write a SQL statement to produce output as follows: First and Last Name of students who live in the Zip code 97912 and have the major of CS. 

Query # 5Write a SQL statement to produce output as follows: First and Last Name of students who live in the Zip code 32826 or 33186. Do not use IN.

 Query # 6Write a SQL statement to produce output as follows: the First and Last Name of students who have the major of Business or Math. Use IN. 

Query # 7Write a SQL statement to produce output as follows: the First and Last Name of students who have the Class greater than 1 and less than 5. Use BETWEEN. 

Query # 8Write a SQL statement to produce output as follows: First and Last Name of students who have the Last name that starts with an M. 

Query # 9Write a SQL statement to produce output as follows: First and Last name of students having an o in the second position in their First Name. 

Query # 10Write a SQL expression to produce output as follows: display the Status for, and the number of occurrences that apply to each status. You must use the Count(*) function. You must show the result of the Count(*) function as CountStatus. Group by Status and output the results in ascending order of CountStatus. 

Step 5: Submit your work. Once you complete ALL tasks noted above, zip the files YourLastName_Project_Ph1_Query.sql AND YourLastName_Project_Ph1_Output and submit them.