every derived yable must have its own alias

Solutions on MaxInterview for every derived yable must have its own alias by the best coders in the world

showing results for - "every derived yable must have its own alias"
Aoibhe
25 Feb 2016
1
2/*Every derived table (AKA sub-query) must indeed have an alias. 
3I.e. each query in brackets must be given an alias (AS whatever), 
4which can the be used to refer to it in the rest of the outer query.
5*/
6SELECT ID FROM (
7    SELECT ID, msisdn FROM (
8        SELECT * FROM TT2
9    ) AS T
10) AS T
11
similar questions