<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Random Number Generator Script &#8211; SQL Query</title>
	<atom:link href="http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Sun, 12 Feb 2012 09:22:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: amit shukla</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-245673</link>
		<dc:creator><![CDATA[amit shukla]]></dc:creator>
		<pubDate>Mon, 30 Jan 2012 11:15:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-245673</guid>
		<description><![CDATA[Hi,
Pinal Dave

i had a problem i want to create 6 digit non repeating random number like 123456 if 122345 (wrong digits)
how can i code it]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
Pinal Dave</p>
<p>i had a problem i want to create 6 digit non repeating random number like 123456 if 122345 (wrong digits)<br />
how can i code it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jia</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-212933</link>
		<dc:creator><![CDATA[Jia]]></dc:creator>
		<pubDate>Wed, 07 Dec 2011 19:19:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-212933</guid>
		<description><![CDATA[The chance of getting random integer number is not equal by using ROUND function. I guess FLOOR or CEILING is better choice -

SELECT @Random = FLOOR(@Lower + RAND() * (@Upper - @Lower + 1))]]></description>
		<content:encoded><![CDATA[<p>The chance of getting random integer number is not equal by using ROUND function. I guess FLOOR or CEILING is better choice -</p>
<p>SELECT @Random = FLOOR(@Lower + RAND() * (@Upper &#8211; @Lower + 1))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vadivel Mohanakrishnan</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-189442</link>
		<dc:creator><![CDATA[Vadivel Mohanakrishnan]]></dc:creator>
		<pubDate>Sun, 06 Nov 2011 13:02:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-189442</guid>
		<description><![CDATA[Check out the way to generate random data into a table as a whole - 
http://vadivel.blogspot.com/2011/10/generate-test-random-data-for-table-in.html]]></description>
		<content:encoded><![CDATA[<p>Check out the way to generate random data into a table as a whole &#8211;<br />
<a href="http://vadivel.blogspot.com/2011/10/generate-test-random-data-for-table-in.html" rel="nofollow">http://vadivel.blogspot.com/2011/10/generate-test-random-data-for-table-in.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Munoz</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-184367</link>
		<dc:creator><![CDATA[Alex Munoz]]></dc:creator>
		<pubDate>Fri, 28 Oct 2011 00:53:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-184367</guid>
		<description><![CDATA[An easy change to Method 1 to make it more accurate is to replace the ROUND line as follows:

SELECT @Random = FLOOR(((@Upper - @Lower + .9999999999) * RAND() + @Lower))


The entire method would then read:

DECLARE @Random INT
DECLARE @Upper INT
DECLARE @Lower INT

SET @Lower = 0 ---- The lowest random number
SET @Upper = 14 ---- The highest random number
SELECT @Random = FLOOR(((@Upper - @Lower + .9999999999) * RAND() + @Lower))
SELECT @Random]]></description>
		<content:encoded><![CDATA[<p>An easy change to Method 1 to make it more accurate is to replace the ROUND line as follows:</p>
<p>SELECT @Random = FLOOR(((@Upper &#8211; @Lower + .9999999999) * RAND() + @Lower))</p>
<p>The entire method would then read:</p>
<p>DECLARE @Random INT<br />
DECLARE @Upper INT<br />
DECLARE @Lower INT</p>
<p>SET @Lower = 0 &#8212;- The lowest random number<br />
SET @Upper = 14 &#8212;- The highest random number<br />
SELECT @Random = FLOOR(((@Upper &#8211; @Lower + .9999999999) * RAND() + @Lower))<br />
SELECT @Random</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-178752</link>
		<dc:creator><![CDATA[Rajesh]]></dc:creator>
		<pubDate>Fri, 14 Oct 2011 10:13:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-178752</guid>
		<description><![CDATA[Hi,

I have a problem on random number and great some one can help.

We have a table which has 100 records and i want to generate random number between 40 and 70 for each record. So i need unique number generated for each record and it should be between 40 and 70. I dont mind if we get float values as well.

If anyone can answer it would be of immense help.

Regards
Rajesh]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have a problem on random number and great some one can help.</p>
<p>We have a table which has 100 records and i want to generate random number between 40 and 70 for each record. So i need unique number generated for each record and it should be between 40 and 70. I dont mind if we get float values as well.</p>
<p>If anyone can answer it would be of immense help.</p>
<p>Regards<br />
Rajesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: will</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-178460</link>
		<dc:creator><![CDATA[will]]></dc:creator>
		<pubDate>Thu, 13 Oct 2011 18:21:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-178460</guid>
		<description><![CDATA[DECLARE @Random INT, @Upper INT, @Lower INT,  @Count INT

set @Count = 0	
		
DECLARE @1 int , @2 int, @3 int, @4 int, @5 int, @6 int

SELECT @1 = 0, @2  = 0, @3  = 0, @4  = 0, @5  = 0, @6  = 0

SET @Lower = 1 ---- The lowest random number
SET @Upper = 6 ---- The highest random number

	
	WHILE @Count &lt; 1000
	BEGIN

		SELECT @Random = ROUND(((@Upper - @Lower -1) * RAND() + @Lower), 0)
		
		IF @RANDOM = 1 	SET @1 = @1 + 1
			
		IF @RANDOM = 2 	SET @2 = @2 + 1
			
		IF @RANDOM = 3 	SET @3 = @3 + 1
			
		IF @RANDOM = 4 SET @4 = @4 + 1
		
		IF @RANDOM = 5 SET @5 = @5 + 1
			 
		IF @RANDOM = 6  SET @6 = @6 + 1
				
		SET @Count = @Count + 1
	END
		
	SELECT  @1 , @2 , @3 , @4  , @5  , @6]]></description>
		<content:encoded><![CDATA[<p>DECLARE @Random INT, @Upper INT, @Lower INT,  @Count INT</p>
<p>set @Count = 0	</p>
<p>DECLARE @1 int , @2 int, @3 int, @4 int, @5 int, @6 int</p>
<p>SELECT @1 = 0, @2  = 0, @3  = 0, @4  = 0, @5  = 0, @6  = 0</p>
<p>SET @Lower = 1 &#8212;- The lowest random number<br />
SET @Upper = 6 &#8212;- The highest random number</p>
<p>	WHILE @Count &lt; 1000<br />
	BEGIN</p>
<p>		SELECT @Random = ROUND(((@Upper &#8211; @Lower -1) * RAND() + @Lower), 0)</p>
<p>		IF @RANDOM = 1 	SET @1 = @1 + 1</p>
<p>		IF @RANDOM = 2 	SET @2 = @2 + 1</p>
<p>		IF @RANDOM = 3 	SET @3 = @3 + 1</p>
<p>		IF @RANDOM = 4 SET @4 = @4 + 1</p>
<p>		IF @RANDOM = 5 SET @5 = @5 + 1</p>
<p>		IF @RANDOM = 6  SET @6 = @6 + 1</p>
<p>		SET @Count = @Count + 1<br />
	END</p>
<p>	SELECT  @1 , @2 , @3 , @4  , @5  , @6</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alwaysinmotion</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-175354</link>
		<dc:creator><![CDATA[alwaysinmotion]]></dc:creator>
		<pubDate>Wed, 05 Oct 2011 12:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-175354</guid>
		<description><![CDATA[Hi Pinal,

Thank you so much for your blog.  I am so often googling and finding the answers at your site.  Please keep up the great work.  Jean]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Thank you so much for your blog.  I am so often googling and finding the answers at your site.  Please keep up the great work.  Jean</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-168296</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Thu, 15 Sep 2011 07:56:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-168296</guid>
		<description><![CDATA[It just generates the numbers between 0 and 1. It is similar to the one available in C language]]></description>
		<content:encoded><![CDATA[<p>It just generates the numbers between 0 and 1. It is similar to the one available in C language</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-168295</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Thu, 15 Sep 2011 07:46:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-168295</guid>
		<description><![CDATA[insert into table(decimal_col)
select cast(rand() as decimal(8,6))]]></description>
		<content:encoded><![CDATA[<p>insert into table(decimal_col)<br />
select cast(rand() as decimal(8,6))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-168294</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Thu, 15 Sep 2011 07:44:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-168294</guid>
		<description><![CDATA[This code will do what you needed

select cast(rand() as decimal(8,6))]]></description>
		<content:encoded><![CDATA[<p>This code will do what you needed</p>
<p>select cast(rand() as decimal(8,6))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-168289</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Thu, 15 Sep 2011 07:38:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-168289</guid>
		<description><![CDATA[Yes it will work. Did you try?]]></description>
		<content:encoded><![CDATA[<p>Yes it will work. Did you try?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peacemaker</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-168051</link>
		<dc:creator><![CDATA[Peacemaker]]></dc:creator>
		<pubDate>Wed, 14 Sep 2011 15:50:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-168051</guid>
		<description><![CDATA[Thanks Madhivanan:
are you sure this working? 
Consider table name accounts
and columns name account_id]]></description>
		<content:encoded><![CDATA[<p>Thanks Madhivanan:<br />
are you sure this working?<br />
Consider table name accounts<br />
and columns name account_id</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-168039</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 14 Sep 2011 14:39:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-168039</guid>
		<description><![CDATA[insert into table(col)
select * from
(
select cast(cast(newid() as varbinary(2)) as int)  random_no
) as t where not exists (select * from table where col=random_no )]]></description>
		<content:encoded><![CDATA[<p>insert into table(col)<br />
select * from<br />
(<br />
select cast(cast(newid() as varbinary(2)) as int)  random_no<br />
) as t where not exists (select * from table where col=random_no )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peacemaker</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-168030</link>
		<dc:creator><![CDATA[Peacemaker]]></dc:creator>
		<pubDate>Wed, 14 Sep 2011 14:10:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-168030</guid>
		<description><![CDATA[Hi,

I am trying to write a sql for DB2 table where I am using the following:

- Inserting into an existing table
- Using a random number which already does not exist in this table.
- Can&#039;t use stored procedure.

Any assistance will be great.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am trying to write a sql for DB2 table where I am using the following:</p>
<p>- Inserting into an existing table<br />
- Using a random number which already does not exist in this table.<br />
- Can&#8217;t use stored procedure.</p>
<p>Any assistance will be great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DANI</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-138001</link>
		<dc:creator><![CDATA[DANI]]></dc:creator>
		<pubDate>Tue, 31 May 2011 15:33:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-138001</guid>
		<description><![CDATA[what should  i insert  in     A  to  get non repeated random number in Seat_No column

SqlCommand    com =   new SqlCommand(&quot;UPDATE   Table1  

SET Seat_No =&#039;&quot; + &quot;   A    &quot;+ &quot;&#039; 

Where Applicant_NIC=&#039;&quot; + &quot; &quot; + TextBox3.Text + &quot; &quot; + &quot;&#039;&quot;, conn);]]></description>
		<content:encoded><![CDATA[<p>what should  i insert  in     A  to  get non repeated random number in Seat_No column</p>
<p>SqlCommand    com =   new SqlCommand(&#8220;UPDATE   Table1  </p>
<p>SET Seat_No =&#8217;&#8221; + &#8221;   A    &#8220;+ &#8220;&#8216; </p>
<p>Where Applicant_NIC=&#8217;&#8221; + &#8221; &#8221; + TextBox3.Text + &#8221; &#8221; + &#8220;&#8216;&#8221;, conn);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Muhammad Adeel</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-116215</link>
		<dc:creator><![CDATA[Muhammad Adeel]]></dc:creator>
		<pubDate>Sat, 05 Feb 2011 20:10:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-116215</guid>
		<description><![CDATA[Thanks Man, your post helped me so much]]></description>
		<content:encoded><![CDATA[<p>Thanks Man, your post helped me so much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Long</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-114115</link>
		<dc:creator><![CDATA[Jason Long]]></dc:creator>
		<pubDate>Tue, 25 Jan 2011 15:26:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-114115</guid>
		<description><![CDATA[Actually you are correct. The 1st one is flawed as it&#039;s written. It will in fact cut off the @Upper value. Also it fails to provide an even distribution of occurrences with the 1st and last numbers within the range.

The following fixes both issues.

DECLARE @Rand1 INT;
DECLARE @Random INT;
DECLARE @Upper INT;
DECLARE @Lower INT

SET @Lower = 5 ---- The lowest random number
SET @Upper = 55 ---- The highest random number
SET @Rand1 = ROUND((((@Upper + 1) - @Lower) * RAND() + @Lower), 0)
SET @Random = CASE WHEN @Rand1 = @Upper + 1 THEN @Lower ELSE @Rand1 END

Cheers,

Jason]]></description>
		<content:encoded><![CDATA[<p>Actually you are correct. The 1st one is flawed as it&#8217;s written. It will in fact cut off the @Upper value. Also it fails to provide an even distribution of occurrences with the 1st and last numbers within the range.</p>
<p>The following fixes both issues.</p>
<p>DECLARE @Rand1 INT;<br />
DECLARE @Random INT;<br />
DECLARE @Upper INT;<br />
DECLARE @Lower INT</p>
<p>SET @Lower = 5 &#8212;- The lowest random number<br />
SET @Upper = 55 &#8212;- The highest random number<br />
SET @Rand1 = ROUND((((@Upper + 1) &#8211; @Lower) * RAND() + @Lower), 0)<br />
SET @Random = CASE WHEN @Rand1 = @Upper + 1 THEN @Lower ELSE @Rand1 END</p>
<p>Cheers,</p>
<p>Jason</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Long</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-114114</link>
		<dc:creator><![CDATA[Jason Long]]></dc:creator>
		<pubDate>Tue, 25 Jan 2011 15:19:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-114114</guid>
		<description><![CDATA[If you want each of the 100 records to have a unique number, just assigned in a random order, don&#039;t use the Rand function.

Use the ROW_NUMBER()  and NEWID() functions... Like this.

UPDATE t1 SET Random = t2.RN
FROM TableName AS t1
INNER JOIN (
	SELECT RowID, ROW_NUMBER() OVER(ORDER BY NEWID())AS RN FROM TableName) AS t2 ON t1.RowID = t2.RowID]]></description>
		<content:encoded><![CDATA[<p>If you want each of the 100 records to have a unique number, just assigned in a random order, don&#8217;t use the Rand function.</p>
<p>Use the ROW_NUMBER()  and NEWID() functions&#8230; Like this.</p>
<p>UPDATE t1 SET Random = t2.RN<br />
FROM TableName AS t1<br />
INNER JOIN (<br />
	SELECT RowID, ROW_NUMBER() OVER(ORDER BY NEWID())AS RN FROM TableName) AS t2 ON t1.RowID = t2.RowID</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-97814</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Thu, 04 Nov 2010 12:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-97814</guid>
		<description><![CDATA[Check the uniqueness

select ABS(CHECKSUM(NEWID())+999999)%1000000]]></description>
		<content:encoded><![CDATA[<p>Check the uniqueness</p>
<p>select ABS(CHECKSUM(NEWID())+999999)%1000000</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-97813</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Thu, 04 Nov 2010 12:24:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-97813</guid>
		<description><![CDATA[select CHECKSUM(NEWID())%1000]]></description>
		<content:encoded><![CDATA[<p>select CHECKSUM(NEWID())%1000</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-97812</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Thu, 04 Nov 2010 12:23:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-97812</guid>
		<description><![CDATA[Do you have any unique/primary key in the table?]]></description>
		<content:encoded><![CDATA[<p>Do you have any unique/primary key in the table?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hazael</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-97677</link>
		<dc:creator><![CDATA[Hazael]]></dc:creator>
		<pubDate>Wed, 03 Nov 2010 19:45:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-97677</guid>
		<description><![CDATA[UPDATE seeker_profile SET career_level_id= CEIL(RANDOM()*7);

Random from 1 to 7]]></description>
		<content:encoded><![CDATA[<p>UPDATE seeker_profile SET career_level_id= CEIL(RANDOM()*7);</p>
<p>Random from 1 to 7</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ala'a bahar</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-93971</link>
		<dc:creator><![CDATA[ala'a bahar]]></dc:creator>
		<pubDate>Mon, 18 Oct 2010 06:34:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-93971</guid>
		<description><![CDATA[hello i need a procedure to insert a random value and select the this randomly]]></description>
		<content:encoded><![CDATA[<p>hello i need a procedure to insert a random value and select the this randomly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kenji</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-88223</link>
		<dc:creator><![CDATA[kenji]]></dc:creator>
		<pubDate>Sat, 18 Sep 2010 12:24:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-88223</guid>
		<description><![CDATA[Best site ever!]]></description>
		<content:encoded><![CDATA[<p>Best site ever!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumit Kumar</title>
		<link>http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/#comment-84717</link>
		<dc:creator><![CDATA[Sumit Kumar]]></dc:creator>
		<pubDate>Fri, 20 Aug 2010 09:24:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/29/random-number-generator-script-sql-query/#comment-84717</guid>
		<description><![CDATA[use it 
select top 50 ques from questionnaire order by newid()]]></description>
		<content:encoded><![CDATA[<p>use it<br />
select top 50 ques from questionnaire order by newid()</p>
]]></content:encoded>
	</item>
</channel>
</rss>

