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
Post a Comment