One of your examples had "select * ..." from a 2 table join. Both tables contain the column "id", so you got an ambiguous column error. The "table_alias.*" trick is nice for disambiguating select columns. For example:
SELECT t1.*, t2.id as id2. t2.foo, t2.bar
FROM Catalog.Table1 AS T1 LEFT OUTER
JOIN Catalog.Table2 AS T2
ON T1.id = T2.id
WHERE T1.id > ?
ORDER BY T1.id ASC
In short, give me all of the columns from t1, then get t2.id and alias it to id2 since both tables contain "id", then a few more select columns from t2.
... View more