what is this SQL select construct called? -
what term select construct in following select statement in bold?
select a.t1 a, (select b.n b b b.x = a.t1), c.t2 c a,c a.x = c.x
i explaining can done in oracle when asked called, couldn't think of term. there term this? or selecting select result?
edit: expanded query make sub-query use clear
it subquery. if b.n
refers table aliased b
in outer query, referred correlated subquery.
as guigui42 notes, scalar
query, since returning @ 1 column , row. in fact, must take care ensure @ 1 row ever returned, or query may crash @ later date. guarded against using top 1
or equivalent.
Comments
Post a Comment