|
最初由 xzh2000 发布
[B]
select tt01,tt02,tt03 = case
when tto3 between 0 and 50 then 'HH'
when tto3 between 51 and 100 then 'HK'
when tto3 between 101 and 150 then 'HJ' end
from TAC
BTW﹕偶也是很優秀的 [/B]
如果我把(0~~~~50)
(51~~~100)
(101~~~150)
放在表SITET
DD01 DD02
~~~~~~~~ ~~~~~~~
0 50
51 100
101 150
那上面的SQL語句該怎么寫呀﹗﹗
謝謝﹐各位高手 |
|