Hi,
I am trying to set a value from the following SELECT statement but I am getting an error:
DECLARE @Tmp varchar (20)
SET @Tmp = TOP 1 Value FROM Table ORDER BY NewID()
but I am getting an error near the keyword 'TOP'
Is this sort of statement possible or is there an alternative way to achieve what I am doing. By the way I am using the ORDER by NewID() to randomly select from a table.
Cheers,
Chris