First of all, for all your future posts read this article on how to post questions to getter better responses[/url]
Read this article on What is a Tally Table and how it replaces loops?[/url]
Here is the solution using Tally table.
IF ( OBJECT_ID( 'tempdb..#MyHead' ) IS NOT NULL )
DROP TABLE #MyHead
CREATE TABLE #MyHead
(PK INT IDENTITY(1,1) PRIMARY KEY CLUSTERED,
Orders INT )
INSERT INTO #MyHead
SELECT 10 UNION ALL
SELECT 5 UNION ALL
SELECT 6 UNION ALL
SELECT 45
SELECT mh.PK,
N
FROM dbo.Tally t
CROSS JOIN #MyHead mh
WHERE N <= mh.Orders