Academic SQL Queries for Degrees, Periods, and Students
Classified in Electronics
Written on in
English with a size of 7.85 KB
Academic SQL Queries for Degrees, Periods, and Students
Below are the original SQL fragments (verbatim) followed by corrected, syntactically consistent Oracle-style SQL examples. Comments such as OK, NOT RUN or NO DATA are preserved from the original content. Nothing is removed; original text is shown then corrected for clarity, capitalization and syntax.
Query 1 — Alias and Joins (OK)
Original:
// 1 - OK - ALIAS select * from run c inner join (subject to inner join (asignatura_periodo ap inner join period p on (ap.idp = p.idp)) on (a.id = ap.ida)) on (c.idc = a.idc) where p.semestrep = 'spring' and p.anop = 2008,
Corrected SQL:
SELECT *
FROM run c
INNER JOIN subject a ON (c.idc = a.idc)
INNER JOIN asignatura_periodo ap ON (a.ida = ap.ida)
INNER... Continue reading "Academic SQL Queries for Degrees, Periods, and Students" »