Is it possible (ex. in MS SQL) to perform Join in way like this:
select p.* from Person p join Order o
By default the DB engine could look for any relation between this tables and use it without writing additional:
on p.ID = o.FK_Person
Is it possible (ex. in MS SQL) to perform Join in way like this:
select p.* from Person p join Order o
By default the DB engine could look for any relation between this tables and use it without writing additional:
on p.ID = o.FK_Person
NO you need to specify the join clause in on of the two ways.
Implicit join notation:
SELECT p.*
FROM Person p, Order o
WHERE p.ID = o.FK_Person
Or explicit join notation:
SELECT p.*
FROM Person p
INNER JOIN Order o
ON p.ID = o.FK_Person
If you won't specify any join order, no server would join anything. It's defined in the SQL Standard.
Yes ,, possible when using non ansi joins comma seprated like
select p.* from Person p , Order o
warnings : result will be Cartesian product of two tables .ANSI Joins are not possible.
Thanks