johnix
01-15-2009, 02:56 AM
i have this query:
select distinct top 10 Event_Name, ID from Event where showType = '1' order by ID DESC
out put:
test
Name: ID:
hello 14484
test 14485
test 14486
test 14487
test 14488
test 14489
test 14490
test 14491
range 14492
i want to distinct the name col only.
can anybody help me?
select distinct top 10 Event_Name, ID from Event where showType = '1' order by ID DESC
out put:
test
Name: ID:
hello 14484
test 14485
test 14486
test 14487
test 14488
test 14489
test 14490
test 14491
range 14492
i want to distinct the name col only.
can anybody help me?