sql - Table name after parenthesis notation -


i going through old-ish sql code else had written couldn't quite understand. have simplified structure here, if can walk me through going on, appreciated! may ignore specific column operations examples.

select table.*,   column1 - column2   'col1 - col2',   ...    columnn   'coln'    (select    ...    ) table 

what don't understand final line. assuming definition of "table" in from (select ...) part, , ) table part indicates name of defined table.

thanks in advance!

an inner select needs alias name

select alias_name.* (    select * some_table ... ) alias_name 

Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -