select  * into bbb
 from (select yearly_income,gender,education,num_cars_owned from( select top 100 * from customer_1998 order by newid())  a order by total_money desc)

解决方案 »

  1.   

    还是不行啊,提示出错:
    “除非同时指定了 TOP,否则 ORDER BY 子句在视图、内嵌函数、派生表和子查询中无效。“
      

  2.   

    select  * into bbb
     from (select top 100 percent yearly_income,gender,education,num_cars_owned from( select top 100 percent * from customer_1998 order by newid())  a order by total_money desc)
    ------top 100 percent
      

  3.   

    首先谢谢大家帮忙,可是我按照 myflok(阿棋)的改了还是不行  提示:
    “第 2 行: ')' 附近有语法错误。”