Solved

Select the first occurrence of a each multiple key record in an Access 2007 table.

Posted on 2013-06-01
1
351 Views
Last Modified: 2013-12-06
I have a table that looks like the following....

A                       B                                       C
Art                  Red                                    Vase
Art                  Blue                                   VASE
Art                  Pink                                    Truck
Joe                  Red                                     Blouse
Mike               Green                                 Moon

I WANT THE QUERY OUTPUT TO BE

Art                    Red                                  Vase
joe                    Red                                  Blouse
Mike                 Green                              Moon
0
Comment
Question by:aselbyjr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 61

Accepted Solution

by:
mbizup earned 500 total points
ID: 39213788
You can do this in Access:

Select a, first(b), first(c)
From yourtable
Group by a


But it loses its meaning if the table is reordered.  It is better to have a field such as an auto number to define order of record entry.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question