﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / Select Same row X number of times / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 06:26:37 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Select Same row X number of times</title><link>http://www.sqlservercentral.com/Forums/Topic1032921-391-1.aspx</link><description>Cheers that has seemed to do the trick</description><pubDate>Mon, 13 Dec 2010 03:48:24 GMT</pubDate><dc:creator>Chancus Speare</dc:creator></item><item><title>RE: Select Same row X number of times</title><link>http://www.sqlservercentral.com/Forums/Topic1032921-391-1.aspx</link><description>Something like this  ? ...[code="sql"]with cteRandas(  Select top(1000) abs(checksum(newid())) as Rand   from   sys.columns a cross join sys.columns b cross join sys.columns b)Select *   from  &amp;lt;yourtable&amp;gt; cross join cteRand[/code]</description><pubDate>Fri, 10 Dec 2010 04:08:44 GMT</pubDate><dc:creator>Dave Ballantyne</dc:creator></item><item><title>Select Same row X number of times</title><link>http://www.sqlservercentral.com/Forums/Topic1032921-391-1.aspx</link><description>I am trying to do a monte carlo simulation within SQL I have  a table containing unique product numbers, and what I want to do, is return each product 10'000 times with a random number next to it; I can return one row for each product with SELECT prodmo,rnd=(SELECT RAND((convert(varbinary, newid()))))FROM PriceMoveDemo</description><pubDate>Fri, 10 Dec 2010 03:59:34 GMT</pubDate><dc:creator>Chancus Speare</dc:creator></item></channel></rss>