Answered step by step
Verified Expert Solution
Question
1 Approved Answer
SELECT ps . first _ name | | ' ' | | ps . last _ name AS student, cs . grade, pt . first
SELECT psfirstname pslastname AS student, csgrade,
ptfirstname ptlastname AS teacher,
ssubject, csemester, cyear
FROM people ps
JOIN students s ON pspersonid spersonid
JOIN classroomstudents cs ON sstudentid csstudentid
JOIN classrooms c ON cclassroomid csclassroomid
JOIN subjects s ON ssubjectid csubjectid
JOIN teachers t ON tteacherid cteacherid
JOIN people pt ON ptpersonid tpersonid;
Using the view you just created, write a query that outputs all the students in Megan Gray's spring, Science class. It should include the student's name and grade and should be ordered so that the students with the highest grades show up first.
Write a query that gets the full name of the teacher who teaches Science at FayettevilleManlius School in the spring of
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started