Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write SQL query that would produce these results. Display the number of students from each class that got an A or B in the course.

Write SQL query that would produce these results.

Display the number of students from each class that got an A or B in the course.

className grade count(grade)

Database A 3

Database B 2

Computer Based IS A 3

Computer Based IS B 3

Display the className, grade and how many students got an A, B or C in the class. Filter the data to only display the class and grades where there is a count less than 3.

className grade count(grade)

Database B 2

Database C 2

Computer Based IS C 1

Display the last name of all students who have more than 8 characters in their name. The query results should only display unique values (no duplicate results). The results should appear in descending alphabetical order.

lName Lenth

Stephenson 10

OConnell 9

McRoberts 9

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

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions

Question

Verify the results in Eqs. (17.99) and (17.100).

Answered: 1 week ago