Which of these two sql joins will perform better? -
Whatever method I use in SQL, I'm curious. The following two questions do the same function, which is better than both?
SELECT p.ListName, p.FirstName, o.OrderNo FROM Individuals P Inner Join Order OOPP_ID = OP_ID SELECT p.LastName, p. First nem, o. Order non facies p, order o war p. P_ID = OP_ID In summary, the word inner joins actually uses 'WHERE x = y'?
The issue is ANSI standard version that is used in SQL Server while case 2 syntax was used Was used earlier and it has been rolled out
SELECT p.ListName, p.FirstName, o.OrderNo FROM INNER Joint Order from O.O.P.ID = OP_ID SELECT p. LastName, p.FirstName, o.OrderNo FROM Individuals P, order o WHERE p.P_Id = o.P_Id Therefore both queries will be the same
Please note If you come The query was slightly different. I.e. order
SELECT p.ListName, p.firstName, o.OrderNo to exclude individuals, oo.pp_id = op_id and piid = 1 excluding individuals from VS
SELECT p.ListName, p.FirstName, o.OderDo In this case the query will work completely differently. The output of both queries will be different.
To understand it ...
Comments
Post a Comment