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)
 Why does Rand() keep returning 1?

Author  Topic 

taylo
Yak Posting Veteran

82 Posts

Posted - 2001-07-31 : 21:32:28
I want a random row number but I keep getting a 1 when I run this statement
Select @Q = rand(QID) from BucketQs where Question = 1

QID is an autonumber field that starts way higher than 1. I have read all the random FAQs.

Thanks,


Rob

   

- Advertisement -