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
 SQL Server Development (2000)
 Using distinct query

Author  Topic 

imtu_174
Starting Member

9 Posts

Posted - 2005-10-11 : 16:28:17
Hi
I have a query like below in a function: -

SELECT @v_unit_type = distinct eff_type
from sfpl_plan_eff

How do I use the above distinct clause ?

Regards
Imtiaz

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2005-10-11 : 16:30:49
A variable can only hold one value at a time. Your DISTINCT query could potentially bring back more than one value. Which value do you want in the variable?

Tara
Go to Top of Page
   

- Advertisement -