sql inner join sprcific columns

Solutions on MaxInterview for sql inner join sprcific columns by the best coders in the world

showing results for - "sql inner join sprcific columns"
Irene
01 Jun 2016
1SELECT
2    t1.* -- All columns from table1
3    ,
4    t2.columnName -- Just that column from table2
5    ,
6    t3.columnName -- And just that column from table3
7
8FROM
9    table1 AS t1
10
11    INNER JOIN table2 as t2
12        ON t1.id = t2.table1_id
13
14    INNER JOIN table3 AS t3
15        ON t1.id = t3.table1_id
16