Results 1 to 2 of 2
  1. #1
    Wallatrix is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    3

    Exclamation Union Query on one table


    Help! My SQL teacher wants us to use a union to combine information and I am not sure how to go about doing that. The question is: List part number and part description of all parts currently on order, or are in class SG, or both.

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You would typically use a Union Query when combine similar data from two different sources (i.e. tables).
    All you do is create a query from one source that returns what you want.
    Then do the same in another query from your other source (both queries should be the same structure so all the fields line up).
    Then take the SQL code from each query, and combine by sticking the word "UNION" between the two sections of SQL code.

    See here for more details: http://office.microsoft.com/en-us/ac...010206109.aspx

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

Similar Threads

  1. Table Union Question
    By Caulerpa in forum Queries
    Replies: 5
    Last Post: 01-14-2013, 03:02 PM
  2. Replies: 8
    Last Post: 10-22-2012, 07:43 PM
  3. Unable to edit data in Union table
    By D4WNO in forum Access
    Replies: 2
    Last Post: 08-15-2012, 06:56 AM
  4. how to update in a table union all query
    By learning_graccess in forum Queries
    Replies: 4
    Last Post: 03-31-2012, 07:32 AM
  5. Create table out of union query
    By DKruse1969 in forum Queries
    Replies: 2
    Last Post: 08-28-2009, 09:55 AM

Tags for this Thread

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