123FakeSt
IS-IT--Management
- Aug 4, 2003
- 182
I would like to get my query that outputs:
1
1
2
2
2
3
4
To look like:
1
1
2
2
2
3
4
I was thinking I could use:
SELECT ' ' INTO #temp
[MySelectStatementHere]
FROM [MyTable] CROSS JOIN #temp
But of course that doesn't work. My limitations are I can not use Cursors or Update statements, but I can use temp tables.
The early bird gets the worm, but the second mouse gets the cheese.
1
1
2
2
2
3
4
To look like:
1
1
2
2
2
3
4
I was thinking I could use:
SELECT ' ' INTO #temp
[MySelectStatementHere]
FROM [MyTable] CROSS JOIN #temp
But of course that doesn't work. My limitations are I can not use Cursors or Update statements, but I can use temp tables.
The early bird gets the worm, but the second mouse gets the cheese.