Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    Micron is online now Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,424
    To me, the answer to Should the tblStudentCourseInfo have the dates or the tblCourse? would be that the course dates are an attribute of the courses, so they belong there. The table for student/course info looks like a junction table since many students could take many courses, thus it joins the many to many.


    As for #4, the layout suggests a crosstab query since the courses seem to be transposed from rows (in the courses table) to columns in the query result. If that is not the answer, then maybe a Union query. The problem with the Union approach is that the number of columns can only be fixed during design, whereas with the crosstab, you can get a column for every course type. Add more courses = more columns (if the query is designed correctly). If the dashes are to be taken literally, then the query fields have to be calculated; i.e. show "-" where the result is Null.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  2. #17
    Susy is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Posts
    134
    Thanks Micron, I haven't worked with Crosstabs yet... I will now check on that... is the SQL Code straightforward... I have been experimenting with Access but the idea, and it is something I have to work on, is to write only SQL

    Thanks you all.

  3. #18
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    There is a wizard for crosstab query so go to query design and select that option in the ribbon.

  4. #19
    Micron is online now Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,424
    Quote Originally Posted by Susy View Post
    ...the idea, and it is something I have to work on, is to write only SQL
    You realize this will raise the level of difficulty? Why, when there is an interface which not only makes query creation easier but modification as well.

  5. #20
    Susy is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Posts
    134
    Hi Micron, hi Bulzie..

    Thanks both of you.

    @Micron, I agree with you... but, it is an old exam... they want to test something, I guess, independent from system. Since I am learning Access, I thought I could try to solve it with Access and then see the code and make some adjustments here and there, but it is getting difficult... yeahhh! ;-)

    Nice weekend you all!

    P.S.: The whole assignment should have been done only with SQL...

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 04-26-2015, 07:01 PM
  2. Assignment
    By Michael_25 in forum Programming
    Replies: 13
    Last Post: 02-17-2015, 06:47 PM
  3. Replies: 3
    Last Post: 05-28-2014, 02:12 PM
  4. Access Assignment
    By IsaacA95 in forum Access
    Replies: 1
    Last Post: 08-28-2013, 01:09 PM
  5. Not lookup, but assignment
    By ArmyLT in forum Database Design
    Replies: 3
    Last Post: 11-17-2011, 02:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums