Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2-Use subquery to find the students IDs who scored more than the average mark. [use Grades Table] 3-Write a SQL query to find a list

image text in transcribed

2-Use subquery to find the students IDs who scored more than the average mark. [use Grades Table]

3-Write a SQL query to find a list of the student ID and who have failed the course (scores 39 or less). [use Grades Table]

4-Write SQL statements to display the student ID, marks and new column called Point, evaluate the data in the new column as follows:

-If the student mark is more than 80 then the grade is 4

-If the student mark is more than 70 then the grade is 3

-Otherwise, the grade is 2.

5-Write the SQL statements to get the student first name and marks for all students whose name starts with the letter M. [use Students and Grades Tables]

Use the following tables to answer ALL questions below: Students Table Course Table SID FIRST LAST CODE TITLE S103 John Smith BDS Database Systems S104 Mary Jones PR1 S105 Jane Brown Programing 1 Programing 2 PR2 S106 Mark Jones MA Mathematics S107 John Brown Grades Table SID CODE MARK S103 DBS 72 S103 MA 58 S104 PR1 68 S104 MA 65 S106 PR2 43 S107 MA 35 S107 PR2 60 Find the number of students who got more than 50

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

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions

Question

1. What are the key milestones in prenatal neural development?

Answered: 1 week ago

Question

Using Language That Works

Answered: 1 week ago

Question

4. Are my sources relevant?

Answered: 1 week ago