Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 19th, 2010 | Syntax: MySQL | Size: 0.45 KB | Hits: 53 | Expires: Never
Copy text to clipboard
  1. SELECT student.username "stu_user", student.fullname "stu_name",
  2.         sup.username "sup_user", sup.fullname "sup_name",
  3.         snd.username "snd_user", snd.fullname "snd_name",
  4.         p.project_name, p.description
  5. FROM users student, users sup, users snd, projects p, project_allocation pa
  6. WHERE student.username = pa.student
  7.   AND sup.username = pa.supervisor
  8.   AND snd.username = pa.second_reader
  9.   AND pa.project_id = p.project_id
  10.   AND pa.allocation_id = {$aid}