select a.地点,a.价格,b.价格 from a,b where a.地点=b.地点

解决方案 »

  1.   

    select a.目的,a.票价,b.票价 from 表1a ,表2 b where a.目的=b.目的
      

  2.   

    select aa.名称,aa.票价,bb.票价 from 表1 aa ,表2 bb where aa.name=bb.name
      

  3.   

    select 
        area,
        全价=max(case type when '全价' then price end),
        半价=max(case type when '半价' then price end)
    from
        (select area='杭州',type='全价',price=12 union select '杭州','半价',6) a
    group by
        area
      

  4.   

    上面写错了,重发
    select aa.名称,aa.票价,bb.票价 from 表1 aa ,表2 bb where aa.名称=bb.名称
      

  5.   

    libin_ftsafe(子陌红尘) ( ) 无处不在打开个帖子就是libin_ftsafe(子陌红尘) ( ) 晕死了