Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assuming the simple database with one table holding student names, departments and gpa, write the SQL to 1extract all the fields of all the records

Assuming the simple database with one table holding student names, departments and gpa, write the SQL to

1extract all the fields of all the records in the database and put them in order by name

2. put them in order by gpa, highest to lowest

3.put them in order by gpa, highest to lowest, only listing the top 3

4. put them in order by department

5extract a list of the departments cited in the database

6extract the name and gpa information for all students in the 'music' department

7extract and calculate the number of students and the average gpa for each department, ordered by average gpa, highest to lowest

8extract and calculate the number of students and the average gpa for each deparment with more than 2 students, ordered by average gpa, highest to lowest

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_2

Step: 3

blur-text-image_3

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

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions