047 the steps for a correlated subquery

 

68. The following are the steps for a correlated subquery, listed in random order:
1) The WHERE clause of the outer query is evaluated.
2) The candidate row is fetched from the table specified in the outer query.
3) The procedure is repeated for the subsequent rows of the table, till all the rows are processed.
4) Rows are returned by the inner query, after being evaluated with the value from the candidate row in
the outer query.
Identify the option that contains the steps in the correct sequence in which the Oracle server evaluates a
correlated subquery.
A. 4, 2, 1, 3
B. 4, 1, 2, 3
C. 2, 4, 1, 3
D. 2, 1, 4, 3


Answer: C


1) The  WHERE  clause  of  the  outer  query  is  evaluated.
外查询的where子句来开始评估

2) The  candidate  row  is  fetched  from  the  table  specified  in  the  outer  query.
外查询从表中取出候选行

3) The  procedure  is  repeated  for  the  subsequent  rows  of  the  table,  till  all  the  rows  are  processed. 
表中随后的列也重复这一过程,直到所有的列都被处理

4) Rows  are  returned  by  the  inner  query,  after  being  evaluated  with  the  value  from  the  candidate  row  in the  outer  query. 
外查询的值传到内查询中,内部查询用这个值进行自己查询的评估之后,得到的列被内查询返回到外查询

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值