A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Take data from table, make a list of unique values



 
 
Thread Tools Display Modes
  #1  
Old July 15th, 2008, 03:50 PM posted to microsoft.public.access.queries
KK
external usenet poster
 
Posts: 27
Default Take data from table, make a list of unique values

I have a table which has rows and rows that look like this:

A, 1
A, 2
A, 3
A, 3
A, 3
B, 1
B, 2
B, 2
B, 2
B, 3

I want to create a query that gives me something like this:

A, 1
A, 2
A, 3
B, 1
B, 2
B, 3

Basically create a table of unique values for each letter instead on
repeating ones.

How do I do this? Thanks.
  #2  
Old July 15th, 2008, 03:53 PM posted to microsoft.public.access.queries
[email protected]
external usenet poster
 
Posts: 744
Default Take data from table, make a list of unique values

On Jul 15, 9:50*am, KK wrote:
I have a table which has rows and rows that look like this:

A, 1
A, 2
A, 3
A, 3
A, 3
B, 1
B, 2
B, 2
B, 2
B, 3

I want to create a query that gives me something like this:

A, 1
A, 2
A, 3
B, 1
B, 2
B, 3

Basically create a table of unique values for each letter instead on
repeating ones.

How do I do this? Thanks.


SELECT DISTINCT field1, field2
FROM MyTable
ORDER BY field1, field2;
  #3  
Old July 15th, 2008, 03:55 PM posted to microsoft.public.access.queries
KK
external usenet poster
 
Posts: 27
Default Take data from table, make a list of unique values

One thing I just found out is that if I click on "Total" (while
creating query), the "group by" does this.

but thanks.

On Jul 15, 9:53*am, "
wrote:
On Jul 15, 9:50*am, KK wrote:





I have a table which has rows and rows that look like this:


A, 1
A, 2
A, 3
A, 3
A, 3
B, 1
B, 2
B, 2
B, 2
B, 3


I want to create a query that gives me something like this:


A, 1
A, 2
A, 3
B, 1
B, 2
B, 3


Basically create a table of unique values for each letter instead on
repeating ones.


How do I do this? Thanks.


SELECT DISTINCT field1, field2
FROM MyTable
ORDER BY field1, field2;- Hide quoted text -

- Show quoted text -


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:28 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.