ename location sal
A X 10
A x 20
B y 30
B x 40
ref_table
参考
ename location sal hike
A x '<30' 10%
B y '>30' 25%
对于Ref_table的第一个记录我的逻辑应
Select Sal
from source a
left join
Ref_table B
where
a.sal<=B.sal
对于Ref_table的第二记录米Ÿ逻辑应该
Select Sal
from source a
left join
Ref_table B
where
a.sal>=B.sal
您正在使用哪个数据库? – 2014-09-04 15:32:46