Results 1 to 10 of 10
  1. #1
    wilsontng is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2015
    Posts
    4

    Help with homework

    I got these two SQL questions that I need help, thanks guys !

    1) SELECT Books.Title, Books.PublDate, Publishers.PubName
    FROM Publishers INNER JOIN Books ON Publishers.PubID = Books.PubID


    WHERE (((Publishers.PubName)="Little, Brown and Company"));

    1. Display ISBN and PublDate of all the books published by publishers
    2. Display Title and AuthorCode of all the books published by Little,Brown and Company
    3. Display Price and PublDate of all the books published by Pearson
    4. Display Title, PublDate, and PubName of all the books published by Little,Brown and Company
    I think it's 4

    2) SELECT Books.Title, Books.PublDate
    FROM Author INNER JOIN Books ON Author.[Author ID] = Books.AuthorCode
    WHERE (((Author.FirstName)="Anne"));

    1. Display Title, PublDate of books written by Rice
    2. Display Title, PublDate of books written by Anne
    3. Display ISBN, PublDate of books written by Anne
    4. Display PubName, PublDate of books written by Anne

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,901
    What is it you find confusing about the questions. They seem quite simple and straightforward to me.

    I agree with your first. You don't indicate a choice for the second.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    What exactly have you tried? Can you show readers the code or logic or query or??? that you are having difficulty with?

    We don't do homework questions as such. We try our best to help users who have given an honest try and are having some difficulty. Such difficulty can include things like concepts, design/structure, Access functions and syntax, SQL among others.

    Good luck with your project/assignment.

  4. #4
    wilsontng is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2015
    Posts
    4
    These are from the mock test and to be honest, I do not have sufficient knowledge to solve these questions. Can you guys please help me

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,901
    Mock test for what? These are very basic query statements. Again, exactly what do you not understand about them? What do you think the key words SELECT and WHERE mean? Those alone should be enough to clue you as to the correct answer choice. Perhaps you can benefit from some tutorial sites:
    http://www.w3schools.com/SQl/default.asp
    http://www.rogersaccesslibrary.com/
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    wilsontng is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2015
    Posts
    4
    I know what SELECT means but other terms such as WHERE, INNER JOIN, etc confuse me that they might alter the results

  7. #7
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    @wilsontng

    Where is the sample of your effort/attempt?
    June has given you excellent reference links.

    Don't overlook the power of Google to find/research.

    Here is a link to Introductory SQL videos on youtube.
    https://www.google.com/search?q=yout...utf-8&oe=utf-8

    Tell us more about the course to which this homework is associated.

    Good luck --but you have to do some work and show readers what you are doing/trying/not understanding.

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,901
    As I said, info in the SELECT and WHERE clauses are enough to determine the correct response. I already affirmed your first answer. What would you think is the answer for the second question, and why?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  9. #9
    wilsontng is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2015
    Posts
    4
    The course is information system which covers the basics of Excel, Words, PPT and Access. Obviously, I didnt paid attention in class but I'm trying to catch up. Of course Ive googled about the stuffs Im asking. I guess what is making me confuse is this: I know that the SELECT statement determines the titles that will appear in the result, but will it be altered by other clauses ? and what is the role of () []

    For example:
    SELECT Author.[AuthorID], Count(BookISBN) AS CountofISBN
    FROM Author INNER JOIN Books ON Author.[Author ID] = Books.AuthorCode
    GROUP BY Author.[AuthorID];

    From what Ive scavenged on the internet, im guessing that AuthorID and CountofISBN will appear in the results

    and what does this part do ? ON Author.[Author ID] = Books.AuthorCode

  10. #10
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,901
    The [] define object and field names. This does allow the use of spaces and special characters/punctuation, although neither is recommended with exception of underscore. The () define order of operations. Access will automatically try to supply both in the query builder, even when not needed. None of the () in the first two examples are necessary.

    The ON clause defines the fields for establishing a link between related tables.

    The () in the last example are part of a function declaration.

    The SELECT statement determines what fields will be retrieved. The other clauses can determine what data will be retrieved for each field.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Looking for Homework help!!
    By clueLESS85 in forum General Chat
    Replies: 3
    Last Post: 06-02-2015, 08:04 PM
  2. help ! homework
    By primobolan in forum Queries
    Replies: 2
    Last Post: 11-06-2013, 02:43 PM
  3. desperate for homework help in access
    By catzjenn in forum Access
    Replies: 8
    Last Post: 04-23-2013, 11:51 AM
  4. Help me with microsoft access homework!
    By claudia_lovez_u in forum Access
    Replies: 1
    Last Post: 06-30-2012, 05:46 AM
  5. Replies: 2
    Last Post: 10-08-2011, 10:38 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