我有以下选择结果:
Select t1.ID, t1.Value1
from t1
where t1.ID=1
结果:
ID Value1
1 val1
1 val2
1 val3
1 val4
和
Select t2.ID, t2.Value2
from t2 where t2.ID = 1
结果 2:
ID Value2
1 val5
1 val6
1 val7
1 val8
我想获得像:
ID Value1 Value2
1 val1 val5
1 val2 val6
1 val3 val7
1 val4 val8
我怎样才能得到这个结果?