Access query to pull records that are max of one record but unique of another -


i tried adapting sql here must doing wrong (i know because i'm lost when comes sql) here's sample table: want max id unique trailer

|--id--|trailer|--to--|load qty a|load type/config a| |  1   | a100  |  b6  |     2    |        a1        | |  2   | a100  |  a4  |     1    |        a1        |  <-show |  3   | b099  |  b2  |     6    |        c23       |  <-show |  4   | a027  |  n10 |     3    |        o1        | |  5   | j400  |  a4  |     8    |        a1        |  <-show |  6   | a027  |  a4  |     4    |        b24       |  <-show 

i understand same structure post linked above, cannot work. thought had working having in query "last" except trailer had "group by" started outputting incorrect records.

i figured out. created query id , trailer, set id max , trailer groupby. created query rest of fields , created relationship between id fields.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -