I'm just working through a piece of code and I found a thing that I don't understand. It looks random to me, I can't see any consistency.if you run this code and build a temp table then run the SELECT statement below, SELECT 1 AS Number INTO #Test UNION ALL SELECT 2 UNION ALL SELECT 3 UNION ALL SELECT 4 UNION ALL SELECT 5 UNION ALL SELECT 6 UNION ALL SELECT 7 UNION ALL SELECT 8 UNION ALL SELECT 9UNION ALL SELECT 10 UNION ALL SELECT NULLSELECT Number FROM #Testselect Number,Number|0 as P_0, Number|1 as P_1, Number|10 as P_10 from #test order by 1
I'd love to know what this | function is doing . . .---------------------------------------------------------------------------------http://www.mannyroadend.co.uk A Bury FC supporters website and forum