I have three huge tables each with many many columns (say 500 each).
Each of these tables joins together to form that data that I need by the 'USER_ID' field. What is the easiest way to select this without duplicating the "USER_ID" field 3x? I don't want to have to type out 'select table1.col1.....table3.col500'
my current query:
select table1.*, table2.*, table3.*
FROM table1
JOIN table2 on table1.user_id = table2.user_id
JOIN table3 on table1.user_id = table3.user_id
I'd like to do some sort of 'except table2.user_id, table3.user_id' in the select portion of the statement so I don't see this column there 3x...