Solve the SQL

0 comments

1. Provide select statements to satisfy the following data requests:

  1. List all active male students assigned to Advisors 1 or 3 (Fred Stone or Jack Simpson).
  2. Provide a list of all students without a biography.
  3. What classes are in the English department?
  4. Create a list of all students and their advisors. Sort by the advisor’s name and then the student’s name. Include the student’s birth date, gender, and GPA.
  5. How many students were born in the 1980s?
  6. Write a query to show the average GPA by gender.
  7. Provide a list of all advisors and the number of active students assigned to each. Filter out any advisors with more than 1 student.

Copy and paste the work into your Key Assignment document and include screen shots of each step, describe what you did for each step and paste in the actual SQL text used to perform each step.

Part 2

The new design should incorporate the following functionalities:

  • A degree has a name and description.
  • What degree is the student working towards? A student can only work on one degree at a time.
  • What classes are necessary to obtain a specific degree?
  • Provide the DDL script to add the tables for the new design changes. Include an updated diagram that shows all the tables in the system.
  • Write the DML script to insert 3 test records in each of the tables in the system. This data will be necessary to write the queries in the next assignment.
  • Copy and paste the work into your Key Assignment document and include screen shots of each step, describe what you did for each step and paste in the actual SQL text used to perform each step. Upload your document to the Submitted Tasks section.

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}