Here's a table that i'd like to get just the BidIDs with the earliest BidLastWinDate from.CampaignID BidID BidAmount BidLastWinDate ----------- ----------- ----------- --------------------------- 11 54 200 2005-10-24 00:00:00.00011 55 200 2005-10-01 00:00:01.00011 56 200 2005-10-01 00:00:01.00012 57 110 2005-10-01 00:00:01.00013 58 250 2005-10-17 00:00:00.00013 59 250 2005-10-31 00:00:00.00013 60 250 2005-10-30 00:00:00.00013 61 250 2005-10-19 00:00:00.00013 62 250 2005-10-01 00:00:01.00016 72 110 2005-10-18 00:00:00.00017 73 130 2005-12-26 00:00:00.00028 99 180 2005-10-24 00:00:00.00042 97 130 2005-10-01 00:00:16.00045 103 210 2005-10-01 00:00:10.00045 113 220 1900-01-01 00:01:55.00045 115 320 1900-01-01 00:01:55.00045 104 120 2005-10-01 00:01:20.00047 102 200 2005-10-01 00:00:19.00049 109 100 2005-10-01 00:00:12.000SELECT CampaignID, MIN(BidLastWinDate)as BLWDFROM VIEW_ValidBidsGROUP BY CampaignIDgets me:CampaignID BLWD ----------- --------------------------- 11 2005-10-01 00:00:01.00012 2005-10-01 00:00:01.00013 2005-10-01 00:00:01.00016 2005-10-18 00:00:00.00017 2005-12-26 00:00:00.00028 2005-10-24 00:00:00.00042 2005-10-01 00:00:16.00045 1900-01-01 00:01:55.00047 2005-10-01 00:00:19.00049 2005-10-01 00:00:12.000
.. but I can't seem to get the BidID's into this list AND keep just the min(BidLastWinDate)can anyone lend me a hand?Micke