mySQL ~results are based on user selection of a value (using dropdowns in PHP).
ID: 3903861 • Letter: M
Question
mySQL
~results are based on user selection of a value (using dropdowns in PHP). These values are marked with asterisks in the query description.~
1.) Produce a chronological list of all courses taken by a *specified student*. Show grades earned. Include overall hours taken and GPA at the end.
2.) Produce a list of students and faculty who were in a *particular building* at a *particular time*. Also include in the list faculty and advisors who have offices in that building.
Explanation / Answer
If you have any doubts, please give me comment...
$sql = "SELECT `subject`, credit_hours, grade FROM (course NATURAL JOIN section) NATURAL JOIN details WHERE student_id = '".$student_id."'";
$sql = "SELECT student.*, employee.* FROM (((student NATURAL JOIN student_section) NATURAL JOIN employee E) INNER JOIN room R ON E.office=R.room_id) NATURAL JOIN bulding B WHERE B.building_id='".$building_id."'";
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.