select * from db1..table1
where acctid=(select top 1 acctid from db1..table2 where balance=0)
where acctid=(select top 1 acctid from db1..table2 where balance=0)
解决方案 »
- 关于数据库脚本的问题
- 求一段sql语句 投票系统根据票数排序
- 求一个组合查询
- 这个功能能否用一句sql实现?
- 关于库存报表统计的SQL语句?????
- 为什么SQL2005标准版和开发版在安装到XP的过程中都报兼容性错误
- 左右连接有什么好处?
- 给定一特定周几,如周二,再给定一特定周,如2008年第3周,求该周二在本周的具体日期?
- 新手上路,附加数据库出错,小问题请帮忙。
- 多用户操作中,在内存中建立临时表,用不用每个用户都建立一个临时表名?
- 请教如何获得表的结构
- 请看一下这个语句select identity(int,1,1) as newid,cast(id as int) id into #temp from poassign ....
where acctid in (select acctid from db1..table2 where balance=0)