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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -