2

0

Please login or register to vote for this query.

(click on this box to dismiss)

Lifehacks

Q&A for people looking to bypass life's everyday problems with simple tricks

create table #test (
id int,
name varchar(2)
)

insert into #test values (1,'a'), (2,'b'), (3,'a')



select min(id),name
from #test
group by name

drop table #test

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results