Select proper columns from JOIN statement

Posted by Alexander Stalt on Stack Overflow See other posts from Stack Overflow or by Alexander Stalt
Published on 2010-04-05T08:28:58Z Indexed on 2010/04/05 8:33 UTC
Read the original article Hit count: 286

Filed under:

I have two tables: table1, table2. Table1 has 10 columns, table2 has 2 columns.

SELECT * FROM table1 AS T1 INNER JOIN table2 AS T2 ON T1.ID = T2.ID

I want to select all columns from table1 and only 1 column from table2. Is it possible to do that without enumerating all columns from table1 ?

© Stack Overflow or respective owner

Related posts about t-sql