sql server - t-SQL what is the maximum number of tables I am able to join? -
this question has answer here:
what maximum number of tables able join? or unlimited?
are there shortcuts add multiple tables, without having alias , choose each field?
this bad form (using *
) can keep adding tables out specifying columns so:
select * table1 inner join table2 on table1.id1 = table2.id2;
add table changing above to:
select * table1 inner join table2 on table1.id1 = table2.id2 inner join table3 on table3.id3=table2.id2;
the problem such join getting many columns , moving data around unnecessarily kills performance. don't take out clothes closet when looking shirts (i hope).
Comments
Post a Comment