Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

long SQL - query

Name: Anonymous 2009-11-26 16:51

Post a long SQL-query that you made.
Doesn't have to be the longest you can find.

This is one I am working with at the moment, the size varies depending on some parameters, but this is basically it.

It's for a tool that I am developing for a course at Uni.
It's supposed to help exam planers with their work.
This SQL-query in particular, is used to detect exam collisions.


SELECT
Programs.ProgramName,
Courses.CourseCode,
Courses.CourseType
FROM Programs
INNER JOIN CPConnection ON ProgramID = CProgramID
INNER JOIN Courses ON CCourseID = CourseID
INNER JOIN Statuses ON Courses.StatusID = Statuses.StatusID
WHERE
(Courses.ExamDate = '2009-11-19'
OR Courses.ReExamDate1 = '2009-11-19'
OR Courses.ReExamDate2 = '2009-11-19')
AND NOT (Courses.ExamDate = '0000-00-00'
OR Courses.ReExamDate1 = '0000-00-00'
OR Courses.ReExamDate2 = '0000-00-00')
AND NOT Courses.CourseID = 50
AND (Statuses.StatusName = 'Bokad'
OR Statuses.StatusName = 'Planerad')
AND Programs.ProgramName = 'FriAPS';

Name: Anonymous 2009-11-26 17:52

SELECT FROM MY ANUS

Name: Anonymous 2009-11-26 18:25

CPConnection

( ≖‿≖)

Name: Anonymous 2009-11-26 18:34

(c‿p)

Name: Anonymous 2009-11-27 0:23

This is bullshit, that's not complicated at all. Go and suckle your mothers titties.

Name: Anonymous 2009-11-27 0:31

>>5
why don't you go practice some reading comprehension, asshole.

Name: Anonymous 2009-11-27 0:32

>>6
that was unnessecearily harsh I retract that statement

Name: Anonymous 2009-11-27 0:44

SELECT hax FROM anus LEFT JOIN dick ON anus.haxxedid = dick.haxid LEFT JOIN progdolyte ON 1 WHERE anus.puckering = 1 AND dick.throbbing = 1 AND progdolyte.satori = 1 LIMIT 7;

Name: Anonymous 2010-11-27 14:41

Name: Anonymous 2010-11-28 14:34

Name: Anonymous 2010-12-22 21:34

Name: Anonymous 2011-02-03 2:41

Don't change these.
Name: Email:
Entire Thread Thread List