the question is about table2.id
Table1
id -- Uniqueidentifier primary key
Table2
id -- Uniqueidentifier primary key
id_table1 -- Duplicate foreign key
value -- varchar or other
The possible queries are :
select table1.id, table2.value
from table1
inner join table2 ON table2.id_table1 = table1.id
where table1.id = 'foo'
or
select value
from table2
where table2.id_table1 = 'foo'
Are the performance changed with or without the existence of table2.id. Even if queries doesn't use it?