Sign in | Join
Last post 05-12-2008 1:19 AM by smoothmovz. 3 replies.
Sort Posts: Oldest to newest Newest to oldest
hi again,
i just want to ask if how can i randomly select 5 distinct records from a table w/ a hundreds of records everytime i exec a stored procedure??
thanks
Try this:
SELECT
Hello smoothmovz,
You can add the CheckSum() encapsulating the NEWID() function in the orer by clause
SET
Eralper
Select top n records or random n records for each category
thanks for your helpful replies, can you help me with my other problem. here's my post:
http://forums.asp.net/p/1259677/2351246.aspx#2351246