Hi all,
Im trying to do a select statement. I want to return all columns, but only need the entries with the most recent effective data for each tax code. ie
Should only return
I'm doing this in sql management studio 2008
Thanks in advance
Im trying to do a select statement. I want to return all columns, but only need the entries with the most recent effective data for each tax code. ie
Code:
TaxCode TaxType Rate EffectiveDate Cost
STD 0 17.500 1900-01-01 00:00:00.000 0.000
STD 0 15.000 2008-12-01 00:00:00.000 0.000
STD 0 15.000 2009-07-01 00:00:00.000 0.000
STD 0 15.000 2009-08-03 00:00:00.000 0.000
STD 0 17.500 2010-01-01 00:00:00.000 0.000
Should only return
Code:
STD 0 17.500 2010-01-01 00:00:00.000 0.000
I'm doing this in sql management studio 2008
Thanks in advance