August 22, 2012 at 11:46 am
Source
ABC 01/10/2010 01/10/2011
ABC 01/10/2011 01/01/2012
ABC 01/10/2012 01/01/9999
BCD 01/10/2010 01/10/2011
Bcd 01/20/2011 01/01/9999
Target
ABC 01/10/2010 01/01/9999
BCD 01/10/2010 01/10/2011
Bcd 01/20/2011 01/01/9999
Show me the example in SQL
August 22, 2012 at 11:49 am
looks like GROUP BY , and getting the MIN and MAX values;
what have you tried so far?
Lowell
August 22, 2012 at 11:54 am
Min and Max doesn work for the 2nd Example.
August 22, 2012 at 12:00 pm
vp7986 (8/22/2012)
Min and Max doesn work for the 2nd Example.
Well, that's a collation issue. The default collation is case-insensitive, so BCD = bCd = BcD = Bcd... You can change the collation using the COLLATE keyword. Look it up.
Jared
CE - Microsoft
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply