Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.39 KB | None | 0 0
  1. SELECT Title, Hours, mDate, StudentID, MeetingID, MeetingTypeiD
  2. FROM meetings m
  3. INNER JOIN userdetails u ON u.UserID = m.StudentID
  4. AND u.Level =40
  5. AND StudentID =758
  6. AND m.MeetingStatusID =2
  7. AND YEAR( m.mDate ) =2011
  8. AND MONTH( m.mDate ) =5
  9. AND (
  10. MeetingTypeID
  11. IN ( 30, 32, 27, 26, 38 )
  12. OR (
  13. MeetingTypeID
  14. IN ( 23, 36, 31, 33 )
  15. AND StudentID NOT
  16. IN ( 58, 747, 643, 803, 793 ) ))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement