Let's say I have a query that utilizes two tables, this query works fine and returns the intended results.
SELECT TABLE1.COL, TABLE2.COL
FROM TABLE1, TABLE2
WHERE TABLE1 = 'something' AND TABLE1.ID = TABLE2.ID
Would adding extra tables defined in the schema, along with their foreign key associations slow down my query?
NOTE: The addition of the extra tables does not change what the query returns. The query defined above and the one defined below are equal in "functionality" but are they equal is speed?
SELECT TABLE1.COL, TABLE2.COL
FROM TABLE1, TABLE2, TABLE3, TABLE4
WHERE TABLE1 = 'something' AND TABLE1.ID = TABLE2.ID AND TABLE3.ID = TABLE4.ID