<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Can anyone explain how assignments are stored in the database?</title>
    <link>http://www.mapleprimes.com/questions/38210-Can-Anyone-Explain-How-Assignments-Are</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Wed, 10 Jun 2026 21:44:24 GMT</lastBuildDate>
    <pubDate>Wed, 10 Jun 2026 21:44:24 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Can anyone explain how assignments are stored in the database?</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Can anyone explain how assignments are stored in the database?</title>
      <link>http://www.mapleprimes.com/questions/38210-Can-Anyone-Explain-How-Assignments-Are</link>
    </image>
    <item>
      <title>I'm going on the assumption</title>
      <link>http://www.mapleprimes.com/questions/38210-Can-Anyone-Explain-How-Assignments-Are?ref=Feed:MaplePrimes:Can anyone explain how assignments are stored in the database?:Comments#answer68451</link>
      <itunes:summary>&lt;p&gt;I'm going on the assumption that 'worksheet' really means Question Bank and that you are trying to find the results for a particular Question in one of your Question Banks.&lt;/p&gt;
&lt;p&gt;In the answwersheetitem table, there are a number of ways of referencing questions.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;questionindex &lt;/b&gt;represents the order that the quesitons were given for an instance of an assignment.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;questiongroup &lt;/b&gt;and &lt;b&gt;questionref &lt;/b&gt;combine to reference a question within an assignment.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;topic &lt;/b&gt;and &lt;b&gt;question&lt;/b&gt; combine to reference a question held in a Question Bank.&amp;nbsp; &lt;b&gt;tblocation &lt;/b&gt;points to the .qu file that holds the question.&amp;nbsp; Whenever you edit a Question Bank, a new .qu file is created with a version number.&amp;nbsp; This allows one to look-up instances of a question that was taken prior to that question being changed.&lt;/p&gt;
&lt;p&gt;so an answersheetitem row like the following&lt;/p&gt;
&lt;p&gt;tblocation: classstem\Local_Tests\Bank001.qu&lt;br /&gt;
topic: 1&lt;br /&gt;
question: 4&lt;br /&gt;
questiongroup: 1&lt;br /&gt;
questionref: 2&lt;br /&gt;
questionindex 3&lt;br /&gt;
assignementid: x&lt;/p&gt;
&lt;p&gt;means:&lt;/p&gt;
&lt;p&gt;This was the third question that the student saw when they took the test. &lt;br /&gt;
The question belongs to the 2nd questiongroup in the assignment (0-indexed) and it was the 3rd question in that group (0-indexed)&lt;br /&gt;
The actual quesiton is the 5th question in the 2nd topic of the Question Bank corresponding to the bank at the loation given in tblocation&lt;/p&gt;
&lt;p&gt;Suppose you know the topic and number of a Question in a Question Bank and also know which .qu files represenf that bank (banks are indexed based on the last 3 digits of the file name - 000, 001, 002 etc)&lt;/p&gt;
&lt;p&gt;let's say the question is the first question in the first topic of the bank represented by Bank002.qu&lt;/p&gt;
&lt;p&gt;you could find all of the grades for that question by querying with the where condition:&lt;/p&gt;
&lt;p&gt;topic=0 and question=0 and tblocation like 'your_stem\Local_Tests\Bank%.qu'.&lt;/p&gt;
&lt;p&gt;This clause could also be used to find the corresponding question group and question ref for assignments.&lt;/p&gt;
&lt;p&gt;I hope this sheds some light on how answersheetitems represent their data.&lt;/p&gt;
&lt;p&gt;Jason Cornish &lt;br /&gt;
Developer, Maple T.A.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;I'm going on the assumption that 'worksheet' really means Question Bank and that you are trying to find the results for a particular Question in one of your Question Banks.&lt;/p&gt;
&lt;p&gt;In the answwersheetitem table, there are a number of ways of referencing questions.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;questionindex &lt;/b&gt;represents the order that the quesitons were given for an instance of an assignment.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;questiongroup &lt;/b&gt;and &lt;b&gt;questionref &lt;/b&gt;combine to reference a question within an assignment.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;topic &lt;/b&gt;and &lt;b&gt;question&lt;/b&gt; combine to reference a question held in a Question Bank.&amp;nbsp; &lt;b&gt;tblocation &lt;/b&gt;points to the .qu file that holds the question.&amp;nbsp; Whenever you edit a Question Bank, a new .qu file is created with a version number.&amp;nbsp; This allows one to look-up instances of a question that was taken prior to that question being changed.&lt;/p&gt;
&lt;p&gt;so an answersheetitem row like the following&lt;/p&gt;
&lt;p&gt;tblocation: classstem\Local_Tests\Bank001.qu&lt;br /&gt;
topic: 1&lt;br /&gt;
question: 4&lt;br /&gt;
questiongroup: 1&lt;br /&gt;
questionref: 2&lt;br /&gt;
questionindex 3&lt;br /&gt;
assignementid: x&lt;/p&gt;
&lt;p&gt;means:&lt;/p&gt;
&lt;p&gt;This was the third question that the student saw when they took the test. &lt;br /&gt;
The question belongs to the 2nd questiongroup in the assignment (0-indexed) and it was the 3rd question in that group (0-indexed)&lt;br /&gt;
The actual quesiton is the 5th question in the 2nd topic of the Question Bank corresponding to the bank at the loation given in tblocation&lt;/p&gt;
&lt;p&gt;Suppose you know the topic and number of a Question in a Question Bank and also know which .qu files represenf that bank (banks are indexed based on the last 3 digits of the file name - 000, 001, 002 etc)&lt;/p&gt;
&lt;p&gt;let's say the question is the first question in the first topic of the bank represented by Bank002.qu&lt;/p&gt;
&lt;p&gt;you could find all of the grades for that question by querying with the where condition:&lt;/p&gt;
&lt;p&gt;topic=0 and question=0 and tblocation like 'your_stem\Local_Tests\Bank%.qu'.&lt;/p&gt;
&lt;p&gt;This clause could also be used to find the corresponding question group and question ref for assignments.&lt;/p&gt;
&lt;p&gt;I hope this sheds some light on how answersheetitems represent their data.&lt;/p&gt;
&lt;p&gt;Jason Cornish &lt;br /&gt;
Developer, Maple T.A.&lt;/p&gt;</description>
      <guid>68451</guid>
      <pubDate>Fri, 12 Dec 2008 00:09:42 Z</pubDate>
      <itunes:author>JC</itunes:author>
      <author>JC</author>
    </item>
    <item>
      <title>Update in v5.0?</title>
      <link>http://www.mapleprimes.com/questions/38210-Can-Anyone-Explain-How-Assignments-Are?ref=Feed:MaplePrimes:Can anyone explain how assignments are stored in the database?:Comments#comment81814</link>
      <itunes:summary>&lt;p&gt;Actually by 'worksheet', I meant 'assignment', which adds a step to your explanation, which was still very helpful!&amp;nbsp; However (given the time that has passed), I wondered if any changes have been introduced in version 5 of Maple TA?&amp;nbsp; We upgraded in September, and when I look in the field answersheetitem.tblocation now, it only seems to contain the string 'db'.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Does this mean (oh joy!) that the question banks are now held in the database, and can be linked in to my sql queries?&lt;/p&gt;
&lt;p&gt;Any details appreciated.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Liz&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Actually by 'worksheet', I meant 'assignment', which adds a step to your explanation, which was still very helpful!&amp;nbsp; However (given the time that has passed), I wondered if any changes have been introduced in version 5 of Maple TA?&amp;nbsp; We upgraded in September, and when I look in the field answersheetitem.tblocation now, it only seems to contain the string 'db'.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Does this mean (oh joy!) that the question banks are now held in the database, and can be linked in to my sql queries?&lt;/p&gt;
&lt;p&gt;Any details appreciated.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Liz&lt;/p&gt;</description>
      <guid>81814</guid>
      <pubDate>Wed, 18 Nov 2009 20:21:49 Z</pubDate>
      <itunes:author>ukah310</itunes:author>
      <author>ukah310</author>
    </item>
  </channel>
</rss>