May 22, 2012 at 9:40 pm
hello all.
I need to 3 bit counter with T-Sql that give this result:
000
001
010
011
100
101
110
........
please give me tsql.thanks
May 23, 2012 at 12:40 am
Here you go: all possible 3-bit values in one simple query:
SELECT '000'
UNION
SELECT '001'
UNION
SELECT '010'
UNION
SELECT '011'
UNION
SELECT '100'
UNION
SELECT '101'
UNION
SELECT '110'
UNION
SELECT '111';
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
May 23, 2012 at 12:53 am
elham_azizi_62 (5/22/2012)
I need to 3 bit counter with T-Sql that give this result
Why?
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply