Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write 10 queries (see assignment instruction for detailed requirements) to query the STUDENT schema you created for practice lab 1. Your Select Statements should run

Write 10 queries (see assignment instruction for detailed requirements) to query the STUDENT schema you created for practice lab 1. Your Select Statements should run error-free and should be valid. Submit two separate files: one plain text file (.txt or .sql file) with your SELECT statements only; and the other document include both your SELECT statements and your query results (copy and paste text or screen shots). The instructor and TA should be able to run your plain text source file as script and generate the same output as shown in your result document.

Q1. Show the number of instructors who have a zip of 10025 and a the street number of 518.

Q2. Display all students who live in the state of MA. List first name, last name, zip, and city. Sort by city (descending), zip (ascending), and last name (ascending).

Q3. List all zipcodes where at least three students AND at least four instructors reside. Show zip, state and city.

Q4. List all cities that have 10 or more students and instructors combined. Show city, state, number of student residents, number of instructor residents, and total student/instructor residents in that city. Sort by total in descending order.

Q5. List the instructor id and name of the instructors that teach fewer than 10 sections.

Q6. List all students (display student_id, first name, last name, and registration date) who registered on or after 2/23/2007 but have not enrolled in any course.

Q7. Find how many students are enrolled in sections taught by Todd Smythe.

Q8. List the students who have received any numeric grade score of at least 95 in an Advanced Java Programming course. Show student name, the grade type code, and the numeric grade.

Q9. List the instructors who teach Advanced Java Programming, without duplication. Show instructor name and course name.

Q10. Find the minimum, maximum, and average grade of final exams in sections taught by Todd Smythe

Just answer the queries

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions