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  

Help Please



 
 
Thread Tools Display Modes
  #1  
Old November 4th, 2004, 06:08 PM
D
external usenet poster
 
Posts: n/a
Default Help Please

I have:

F1 F2 F3
1 12Oct 2:14
0 12Oct 2:14
0 13Oct 1:15

when is the same day and time I would like a condition that shows just the
record with value in F1 - keep record number 3 and 1

Big Thanks

Dan
  #2  
Old November 5th, 2004, 07:56 PM
[MVP] S.Clark
external usenet poster
 
Posts: n/a
Default

Select F1, F2, F3 FROM tablename GROUP BY F1, F2, F3

--
Steve Clark, Access MVP
FMS, Inc.
www.fmsinc.com/consulting

"D" wrote in message
...
I have:

F1 F2 F3
1 12Oct 2:14
0 12Oct 2:14
0 13Oct 1:15

when is the same day and time I would like a condition that shows just the
record with value in F1 - keep record number 3 and 1

Big Thanks

Dan



  #3  
Old November 6th, 2004, 01:31 PM
John Spencer (MVP)
external usenet poster
 
Posts: n/a
Default

I think that the solution proposed is on the right track except for one missing bit.

SELECT Max(F1) as F_1, F2, F3
FROM TableName
GROUP BY F2, F3

I think the proposed solution would still return all three records.

"[MVP] S.Clark" wrote:

Select F1, F2, F3 FROM tablename GROUP BY F1, F2, F3

--
Steve Clark, Access MVP
FMS, Inc.
www.fmsinc.com/consulting

"D" wrote in message
...
I have:

F1 F2 F3
1 12Oct 2:14
0 12Oct 2:14
0 13Oct 1:15

when is the same day and time I would like a condition that shows just the
record with value in F1 - keep record number 3 and 1

Big Thanks

Dan

 




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 07:57 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.