Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following is a Student Table from a database. Write your SQL queries to answer the following questions: Student _ ID , Name, Age, Gender,

The following is a Student Table from a database. Write your SQL queries to answer the following questions:
Student_ID, Name, Age, Gender, Grade
1,Sarah, 18, Female, 90
2,Mohamed, 19, Male, 85
3, Ahmed, 17, Male, 77
4, Maryam, 18, Female, 92
5, Saeed, 20, Male, 87
1- Retrieve the Name and Age of students with a Grade greater than 89.
2- Retrieve the count of Male students in the student table.
3- Retrieve the average Grade of all students.
4- Update the Grade of the student with Student_ID 3 to 90.
5- Delete the record of the student named "Ahmed".
6- Insert a new student into the table.

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

Advances In Spatial And Temporal Databases 10th International Symposium Sstd 2007 Boston Ma Usa July 2007 Proceedings Lncs 4605

Authors: Dimitris Papadias ,Donghui Zhang ,George Kollios

2007th Edition

3540735399, 978-3540735397

More Books

Students also viewed these Databases questions

Question

What is meant by planning or define planning?

Answered: 1 week ago

Question

Define span of management or define span of control ?

Answered: 1 week ago

Question

What is meant by formal organisation ?

Answered: 1 week ago

Question

What is meant by staff authority ?

Answered: 1 week ago

Question

Apply your own composing style to personalize your messages.

Answered: 1 week ago

Question

Format memos and e-mail properly.

Answered: 1 week ago