SQL Server performance - Subselect or Inner Join?
问题 I've been pondering the question which of those 2 Statements might have a higher performance (and why): select * from formelement where formid = (select id from form where name = 'Test') or select * from formelement fe inner join form f on fe.formid = f.id where f.name = 'Test' One form contains several form elements, one form element is always part of one form. Thanks, Dennis 回答1: The performance depends on the query plan choosen by the SQL Server Engine. The query plan depends on a lot of