Changes between Version 3 and Version 4 of AdminTips
- Timestamp:
- 2012-01-06T21:28:30Z (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdminTips
v3 v4 6 6 {{{ 7 7 #!sql 8 SET @EVENTID=EVENT_ID; 8 9 SELECT * FROM users 9 10 WHERE id IN 10 (SELECT distinct(evaluator) FROM evaluation_mixevals WHERE event_id = EVENTID AND evaluator NOT IN11 (SELECT distinct(submitter_id) FROM evaluation_submissions WHERE event_id = EVENTID)11 (SELECT distinct(evaluator) FROM evaluation_mixevals WHERE event_id = @EVENTID AND evaluator NOT IN 12 (SELECT distinct(submitter_id) FROM evaluation_submissions WHERE event_id = @EVENTID) 12 13 ); 13 14 }}} 14 15 15 Replace EVENT ID to event id.16 Replace EVENT_ID to event id. 16 17 17 18 === Submit for those students === 18 19 {{{ 19 20 #!sql 21 SET @EVENTID=EVENT_ID, @COURSEID=COURSE_ID; 20 22 INSERT INTO evaluation_submissions 21 SELECT NULL, EVENTID, group_events.id, user_id,1,NOW(),'A',1,NOW(),NULL,NOW()23 SELECT NULL,@EVENTID, group_events.id, user_id,1,NOW(),'A',1,NOW(),NULL,NOW() 22 24 FROM groups 23 25 LEFT JOIN groups_members ON groups.id = groups_members.group_id … … 26 28 SELECT id FROM users 27 29 WHERE id IN 28 (SELECT distinct(evaluator) FROM evaluation_mixevals WHERE event_id = EVENTID AND evaluator NOT IN29 (SELECT distinct(submitter_id) FROM evaluation_submissions WHERE event_id = EVENTID)30 (SELECT distinct(evaluator) FROM evaluation_mixevals WHERE event_id = @EVENTID AND evaluator NOT IN 31 (SELECT distinct(submitter_id) FROM evaluation_submissions WHERE event_id = @EVENTID) 30 32 );; 31 33 }}} 32 34 33 Replace EVENT ID to event id and COURSEID to course id.35 Replace EVENT_ID to event id and COURSE_ID to course id.