Hi,
I am still new to TD (9 months) but am getting more involved with writing code instead of making simple changes. I am sure this question has been asked before, but I was unable to find an absolute answer.
Along with this forum I was reading http://www.coffingdw.com/sql/tdsqlutp/derived_tables.htm
I am putting together some cheat sheets for my colleagues on a variety of subjects, including one on derived tables.
With this code...
FROM (SELECT ,a,b,c FROM table1) AS tbl1 (ca, cab, cc)
...the result will always be a derived table, correct?
Therefore, whenever a SELECT is in the FROM clause of an outer SELECT, the result will always be a derived table? Whereas when a SELECT is located in the WHERE clause it is a correlated subquery? No exceptions?
Thanks and God Bless,
Genesius
Forums: