Found this content helpful? Log in or sign up to leave a like!
Correlating the assignments and quizzes CD2 tables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've read carefully two threads that discuss the contents of the quizzes and assignment tables in CD2:
- https://community.canvaslms.com/t5/Data-and-Analytics-Group/Assignments-vs-Quizzes/m-p/576490#M1836
- https://community.canvaslms.com/t5/Data-and-Analytics-Group/New-Quizzes-CD2/m-p/604408#M2791I
I was able to aggregate a few important facts out of those posts, mainly:
- Graded quizzes, surveys and discussions also show up in the Assignments table, but not their ungraded types.
- New quizzes do appear in the assignments table nut not in the Quizzes table
- The content_tags and context_external_tools tables can be used to see which Assignment records correspond to New Quizzes.
However, I am still unsure as to how to associate records in the Assignments table to the Quizzes table (or vice versa). In other words, since my goal is to get a listing that includes *all of the assignments and quizzes in a course* for an instructor to see in a visualization dashboard, if I retrieve records from both tables in order to achieve this goal, I need to be able to tell which pair of them refer to the same entity (so I don't duplicate them in my listing). Can anybody offer some tip on how to do this efficiently? (note that I don't need to tell what type of quiz or assignment they are; I only need to be able to list them all, without duplication).
Update: I wonder if one way to do this would be to simply retrieve all the assignment records for the course from the Assignments table, and then add to it the list of 'ungraded' quiz items, presumably retrieved from the Quizzes table. If so, how can I tell whether a particular Quizzes table record represents an ungraded type? (I can see that the value of the quiz_type field in our database is either 'assignment' or 'graded_survey', so not sure what I'd use).