I two tables with different column names except one column id.
Im using below code to join them and also diferentiate the id column from each other.
SELECT a.id as table_id, * 
FROM [CFG].[pipeline_tables] a
LEFT JOIN [CFG].[pipeline_columns] on a.[id]=[pipeline_columns].[pipeline_tables_id]
but id column from pipeline_tables is picked two times ( original name id and new name table_id) and also plus the id columns from pipeline_columns.
Desired out put should be two Id columns with the changed names as table_id and column_id
 
    