/ Published in: SQL

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
;WITH Tens AS ( SELECT 1 N UNION ALL SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1 ) SELECT ROW_NUMBER() OVER(ORDER BY (SELECT 0)) RN FROM Tens
URL: http://www.sqlservercentral.com/Forums/Topic980975-338-1.aspx
Comments
