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.
| Author |
Topic |
|
imtu_174
Starting Member
9 Posts |
Posted - 2005-10-11 : 16:28:17
|
| HiI have a query like below in a function: - SELECT @v_unit_type = distinct eff_type from sfpl_plan_effHow do I use the above distinct clause ?RegardsImtiaz |
|
|
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 |
 |
|
|
|
|
|