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  

Two records one row



 
 
Thread Tools Display Modes
  #1  
Old May 5th, 2010, 01:46 PM posted to microsoft.public.access.queries
marcie
external usenet poster
 
Posts: 27
Default Two records one row

I have a table that has 2 records per id. I want to display in a query each
value as a record.
So if Id 123 has a record with the value of 7 and another record with the
value of 8 I want a query to display 123, 7, 8.
Is this possible?
  #2  
Old May 5th, 2010, 02:51 PM posted to microsoft.public.access.queries
vanderghast
external usenet poster
 
Posts: 593
Default Two records one row

Only two?


SELECT id , MIN(fieldName), MAX(fieldName)
FROM tableName
GROUP BY id


Vanderghast, Access MVP



"Marcie" wrote in message
...
I have a table that has 2 records per id. I want to display in a query
each
value as a record.
So if Id 123 has a record with the value of 7 and another record with the
value of 8 I want a query to display 123, 7, 8.
Is this possible?


 




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 02:47 PM.


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