select dd.KB*(aa.b*100-aa.c*10) from 表1 aa, 表2 dd where aa.a=1.0
union
select ee.KB(bb.b*100+bb.c*10) from 表1 bb, 表2 ee  where bb.a=2.0
union
select ff.KB(cc.b*100+cc.c*5) from 表1 cc, 表2 ff  where cc.a=3.0

解决方案 »

  1.   

    写错了,忘记“*”了
    select dd.KB*(aa.b*100-aa.c*10) from 表1 aa, 表2 dd where aa.a=1.0
    union
    select ee.KB*(bb.b*100+bb.c*10) from 表1 bb, 表2 ee  where bb.a=2.0
    union
    select ff.KB*(cc.b*100+cc.c*5) from 表1 cc, 表2 ff  where cc.a=3.0
      

  2.   

    还是不太懂,要求同时计算出多个孔道的时间,并插入表3中
    如:   编号  Tb1  Tb2  Tb3 .... 
           1
           2
           3 
           . 
           .
           .
      

  3.   

    你要写出三个表的结构,
    按你的想法,b、c的值不同得出肯定有很多个T1值???