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

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

How to mention the localhost in android -

php - Calling a template part from a post -