Very new to SQL Sever here... I understand the concept of joining tables, etc. but what is the easiest way to determine which columns are shared?
Say for instance we ha
Use following query (name used to show coman columns list)
select name from syscolumns s1 where id = object_id('table1') and exists(select 1 from syscolumns s2 where s2.name = s1.name and s2.id = object_id('table2'))