请教一个sql2000数据库多表查询的问题

来源:百度知道 编辑:UC知道 时间:2024/06/18 23:06:02
我写的select top 10 * from (select * from shichangfenxi a union select* from tiyuxinxi b union select * from yulexinxiunion c union select * from zuixindongtai d) e where id not in (select top 0 id from (select * from shichangfenxi a union select* from tiyuxinxi b union select * from yulexinxiunion c union select * from zuixindongtai d) e where biaoti='今天') where biaoti='今天'
在查询分析器里出现了服务器: 消息 156,级别 15,状态 1,行 1
在关键字 'where' 附近有语法错误。
请问那里有问题呢,谢谢!请多多指教.

同上 自己把括号解出来先执行 再嵌套

格式问题是个重要问题,本来没有几个查询,但就是把头都看大了,都不懂在做什么

自己一级级的单独执行然后找错误。~~~这么长~~~