select top 5 Gtitle from 
   (select * from a
    union all
    select * from b) c
order by c.Gdate desc

解决方案 »

  1.   

    select top 5 Gtitle from
    (
    select Gtitle from A
    union all
    select Gtitle from B
    )a
    order by a.Gtitle  desc
      

  2.   

    红尘大哥,您说的方法出错:
      包含UNION运算符的表达式所有查询都必须在选择列表中包含相同数目的表达式
      

  3.   

    select top 5 Gtitle from 
       (select Gtitle, Gdate from a
        union all
        select Gtitle, Gdate from b) c
    order by c.Gdate desc
      

  4.   

    select top 5 Gtitle from (select Gtitle from A union select Gtitle from B) as TempC order by TempC.Gdate
      

  5.   

    不好意思,上面漏了一个字段。select top 5 Gtitle from (select Gtitle,Gdate from A union select Gtitle,Gdate from B) as TempC order by TempC.Gdate