Results 1 to 4 of 4
  1. #1
    NCepeda is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    2

    SQL Subselect difference between

    I am trying to answer the following question:
    How many locations have no SKU assigned in the front section of the secondary storage area?

    There are the queries I came up with now:
    SELECT L4.Locationavailable_pk
    FROM Layout04_DA_LocationsAvailable AS L4
    WHERE LEFT(L4.Locationavailable_pk,2) = 'SF'

    =4698 records


    SELECT SS.SkuID_fk, SS.SecLocation_fk
    FROM IM_DA_SecStorageAssignments AS SS
    WHERE LEFT(SS.SecLocation_fk,2) ='SF'



    =4579 records


    The difference 119 records. I need to combine these two queries into one query that outputs my 119 records.

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Try the unmatched query wizard to compare those 2.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    NCepeda is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    2
    That worked! Thanks brother!

  4. #4
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Happy to help, and welcome to the site!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Getting the difference between dates
    By trident in forum Forms
    Replies: 5
    Last Post: 01-26-2015, 07:19 AM
  2. Difference between Expression
    By zbaker in forum Access
    Replies: 4
    Last Post: 11-17-2014, 11:20 AM
  3. Date difference
    By Kaaivin in forum Queries
    Replies: 2
    Last Post: 07-03-2013, 06:06 AM
  4. Get difference of Min and Max
    By nazimscr in forum Queries
    Replies: 1
    Last Post: 07-14-2012, 02:04 PM
  5. Time Difference
    By jlclark4 in forum Queries
    Replies: 4
    Last Post: 10-13-2011, 09:23 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