4. Finding all students with GPA over 3.4: SELECT * FROM Students WHERE gpa > 3.4; 5- Finding the name of the oldest student: SELECT name FROM Students ORDER BY age DESC LIMIT 1; 6. Finding the grade of each course that Alice takes: SELECT grade FROM Enrolled WHERE sid 500132; =

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter4: Single-table Queries
Section: Chapter Questions
Problem 15SCG
icon
Related questions
Question
4. Finding all students with GPA over 3.4:
SELECT * FROM Students WHERE gpa > 3.4;
5- Finding the name of the oldest student:
SELECT name FROM Students ORDER BY age
DESC LIMIT 1;
6. Finding the grade of each course that Alice
takes:
SELECT grade FROM Enrolled WHERE sid
500132;
=
Transcribed Image Text:4. Finding all students with GPA over 3.4: SELECT * FROM Students WHERE gpa > 3.4; 5- Finding the name of the oldest student: SELECT name FROM Students ORDER BY age DESC LIMIT 1; 6. Finding the grade of each course that Alice takes: SELECT grade FROM Enrolled WHERE sid 500132; =
3. For tasks 4 to 6, please provide the SQL commands for
fulfilling the requirements, along with the explanations
of why/how do you form the commands as is. Please
also provide a screenshot of the results.
Transcribed Image Text:3. For tasks 4 to 6, please provide the SQL commands for fulfilling the requirements, along with the explanations of why/how do you form the commands as is. Please also provide a screenshot of the results.
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Enhanced ER Model
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage