Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Distinct records without using distinct word

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-01-12 : 07:52:04
Avinash Kuamr writes "How can i get distinct employee name from Employee Table without using distinct key word"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2004-01-12 : 07:53:16
It's really amazing how often we get to use Chad's sage advice:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=24411
Go to Top of Page

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2004-01-12 : 09:13:36
sounds like a homework question to me.

- Jeff
Go to Top of Page

Arnold Fribble
Yak-finder General

1961 Posts

Posted - 2004-01-12 : 09:59:06
SELECT name FROM Employee
UNION
SELECT '' WHERE 1=0

Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2004-01-12 : 10:26:40
Or the MS Access "DISTINCT" syntax becaus ethe devlopers doen't KNOW...


SELECT Name FROM EMPLOYEE GROUP BY Name

(not that this is a reccomendation mind you)



Brett

8-)
Go to Top of Page
   

- Advertisement -