hd.
hd.

Reputation: 18306

multiple condition in join

how can i use two or more condition on join? i want to replace this query with join version of it:

select * 
from t1,t2 
where t1.a=t2.b and t1.c=t2.d and t1.e=t2.f

how could it be?

Upvotes: 0

Views: 196

Answers (1)

il_guru
il_guru

Reputation: 8508

This should work

select * 
from t1
join t2 
on t1.a = t2.b and t1.c = t2.d and t1.e = t2.f

Upvotes: 5

Related Questions