Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
