Results 1 to 3 of 3
  1. #1
    nbrock2002 is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Posts
    8

    Help with Query! Need to filter large table to 10 records per # in Employee Field

    ID EMPTY EMPLOYEE AREA_DESCR LOCATION_D SKU DESCRIPTIO EXTENDED_Q STORE_PRIC EXTENDED_P
    15668
    1061 SIDE 6B 6B PIZZA/MICRO 3' 01330051501
    11.00 0.79 8.69
    15669
    1061 SIDE 6B 6B PIZZA/MICRO 3' 01600030200
    6.00 0.99 5.94
    15670
    1061 SIDE 6B 6B PIZZA/MICRO 3' 02100004254
    6.00 2.99 17.94
    15671
    1061 SIDE 6B 6B PIZZA/MICRO 3' 02100004255
    3.00 2.99 8.97
    15672


    1061 SIDE 6B 6B PIZZA/MICRO 3' 02100004329
    8.00 2.99 23.92
    15673
    1061 SIDE 6B 6B PIZZA/MICRO 3' 02100005259
    7.00 2.99 20.93
    15674
    1061 SIDE 6B 6B PIZZA/MICRO 3' 02400034606
    18.00 0.65 11.70
    15675
    1061 SIDE 6B 6B PIZZA/MICRO 3' 02400034616
    12.00 1.69 20.28
    15676
    1061 SIDE 6B 6B PIZZA/MICRO 3' 02400034776
    16.00 1.25 20.00
    15677
    1061 SIDE 6B 6B PIZZA/MICRO 3' 03620000550
    7.00 1.49 10.43
    15678
    1061 SIDE 6B 6B PIZZA/MICRO 3' 03620000580
    8.00 1.99 15.92

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    use a subquery - something like

    Code:
    SELECT *
    FROM myTable
    WHERE ID in (SELECT top 10 ID from myTable T WHERE Employee=myTable.Employee)
    You can add ordering to the subquery to return the latest/earliest whatever

  3. #3
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664

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

Similar Threads

  1. Replies: 1
    Last Post: 04-08-2015, 06:35 PM
  2. Replies: 1
    Last Post: 12-22-2014, 11:47 AM
  3. Replies: 1
    Last Post: 04-14-2014, 11:44 AM
  4. Query speed over a large number of records
    By GrantRawlinson in forum Queries
    Replies: 2
    Last Post: 06-15-2012, 11:03 AM

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