This is an example. I have this below query. Is the last two joins valid ?
"and d.org_key = b.system_id and d.category_key = c.category_key". Can I cross refer join.
Select *
from
A
join B
on a.rep_id = b.rep_id
join C
on a.inv_key = c.inv_key
Join D
on a.org_key = d.org_key
and d.org_key = b.system_id
and d.category_key = c.category_key