Apr 15, 2007 #1 wbooster Computer Joined Feb 4, 2007 Messages 2 Location TW If I have data a 1 a 2 a 3 b 3 b 2 c 1 c 2 d 2 I only want to select a, b, c, and d's first record.like a 1 b 3 c 1 d 2 how do I do it
If I have data a 1 a 2 a 3 b 3 b 2 c 1 c 2 d 2 I only want to select a, b, c, and d's first record.like a 1 b 3 c 1 d 2 how do I do it
Jun 26, 2007 #2 rtmpxr Nuclear Joined Aug 26, 2004 Messages 96 Location RO Maybe this is convenient: select <col1>, min(<col2>) from <table> group by <col1> Results: a 1 b 2 c 1 d 2 Upvote 0 Downvote
Maybe this is convenient: select <col1>, min(<col2>) from <table> group by <col1> Results: a 1 b 2 c 1 d 2