sql server - Select data (join?) from only one table using an id from another table -
i have 2 tables, we'll call t1 , t2. want select data in t1 has id can find using clause in t2. don't want select data in t2 (many duplicate column names different data) how do that?
try this
select * t1 t1.id in (select distinct id t2)
Comments
Post a Comment