From this table:
DECLARE @tmp TABLE (id int, ahccs int, info varchar(25), endDate date)
5 123 et 2012-09-15
2 321 et 2012-04-27
2 321 et 2012-04-27
2 321 et 2012-04-27
3 134 et 2012-04-27
How could I insert only these values to another table
5 123 et 2012-09-15
2 321 et 2012-04-27
3 134 et 2012-04-27
Thanks!
Using the Distinct Keyword: