Advertisement
bucky_resa

Untitled

Jul 2nd, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.62 KB | None | 0 0
  1. use iMartStage
  2. go
  3.  
  4. select top 100 c.name, gra.*, tc.*
  5. from icde.gradingscore gra
  6. join icde.person stu
  7.   on (gra.personID = stu.personID and gra.said = stu.said)
  8. join icde.section sec
  9.   on (gra.sectionID = sec.sectionID and gra.said = sec.said)
  10. join icde.course c
  11.   on (sec.courseID = c.courseID and sec.said = c.said)
  12. join icde.gradingtask gt
  13.   on (gra.taskID = gt.taskID and gra.said = gt.said)
  14. join icde.transcriptcourse tc
  15.   on (gra.scoreID = tc.scoreID and gra.said = tc.said)
  16. where 1=1
  17.   and stu.said = '710-ICDE'
  18.   and stu.stateID = '1546601878'
  19.   and sec.teacherDisplay LIKE '%Barth%'
  20.   and gt.taskid = 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement