select customerId form Sales.Customers as C ------ step 1
where not exists ----- step5
( select * from HR.Employees as E -------step 2
where country = 'USA'
and not exists ------ step 4
( select * from Sales.Orders as O ------ step3
where O.customerId = C.customerId
and O.employeeId = E.emploeeId
));
这个语句的执行顺序是我如上step步骤么?
谢谢。
数据库很久没碰,忘光了
where not exists ----- step5
( select * from HR.Employees as E -------step 2
where country = 'USA'
and not exists ------ step 4
( select * from Sales.Orders as O ------ step3
where O.customerId = C.customerId
and O.employeeId = E.emploeeId
));
这个语句的执行顺序是我如上step步骤么?
谢谢。
数据库很久没碰,忘光了
解决方案 »
- 设计个数据库,各位高手帮忙给点意见啊
- 看看这个语句有什么错误!~为什么oracle不能运行?(急)
- 找到小于1的记录
- 关于2个表同时Left Join 一个表的问题
- 小白请教个sql事物复制中出现“等待进程响应,无法在服务器上执行sp_replcmds”
- 关于表连接和更新的问题
- 讨论:SQL Server 如何实现套账功能?
- 为何程序在运行的过程中,运行到调用存储过程的时候,总是sleeping呢?请指点!!
- (重开贴,遇到个垃圾发广告)救救我呀,我在安装SQL2000的时候,选择默认排序规则里,点上了区分大小写,现在SQL区分大小写了,怎么样改回去?
- 谁有vb开发sql server工程的程序 我给57分
- 求教一个简单Sql执行顺序
- 数据库换了局域网,不能用了
然后where
最后select
where not exists ----- step5
( select * from HR.Employees as E -------step 2
where country = 'USA '
and not exists ------ step 4
( select * from Sales.Orders as O ------ step3
where O.customerId = C.customerId
and O.employeeId = E.emploeeId
));
先对3条select语句处理,然后再按照二楼所说,表间的连接操作是按括号的由内到外依次进行的,输出是最后一步。
谢谢