Hi,
I have a join sequence as follows:
from
stoordre a
LEFT JOIN bhrcustc b
ON a.cust_code = b.cust_code
LEFT JOIN bhroapsd child
ON a.cust_code = child.cust_code
INNER JOIN bhroapse parent
ON child.p_code = parent.p_code
INNER JOIN strcustr cust
ON parent.cust_code = cust.cust_code,
stxgropd grp,
bhotimes tme
I would like the first and second INNER join to be nested (grouped) amongst themselves. As if to say, give me all records regardless of bhrcustc, in turn give me all the records regardless bhroapsd. However, bhroapsd and bhroapse and strcustr, I would like to be joined together as INNER. How would I correctly use brackets, etc..
Can anyone please help?
Thank You,
Chaim Bochner
I have a join sequence as follows:
from
stoordre a
LEFT JOIN bhrcustc b
ON a.cust_code = b.cust_code
LEFT JOIN bhroapsd child
ON a.cust_code = child.cust_code
INNER JOIN bhroapse parent
ON child.p_code = parent.p_code
INNER JOIN strcustr cust
ON parent.cust_code = cust.cust_code,
stxgropd grp,
bhotimes tme
I would like the first and second INNER join to be nested (grouped) amongst themselves. As if to say, give me all records regardless of bhrcustc, in turn give me all the records regardless bhroapsd. However, bhroapsd and bhroapse and strcustr, I would like to be joined together as INNER. How would I correctly use brackets, etc..
Can anyone please help?
Thank You,
Chaim Bochner