Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Join query question

$
0
0

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


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>