Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2013-06-01
1
Medium Priority
?
366 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
1 Comment
 
LVL 61

Accepted Solution

by:
mbizup earned 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

876 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