<div dir="ltr">Hello,<div><br></div><div>Is there an S-SQL expression which will produce nested join expressions like this one:</div><div><br></div><div><div style="font-family:arial,sans-serif;font-size:16.363636016845703px">
select * from table_1</div><div style="font-family:arial,sans-serif;font-size:16.363636016845703px"> inner join table_2</div><div style="font-family:arial,sans-serif;font-size:16.363636016845703px"> inner join table_3 on table_2.c = table_3.d</div>
<div style="font-family:arial,sans-serif;font-size:16.363636016845703px">on table_1.a = test_2.b;</div></div><div style="font-family:arial,sans-serif;font-size:16.363636016845703px"><br></div><div style="font-family:arial,sans-serif;font-size:16.363636016845703px">
I know I can do this:</div><div style="font-family:arial,sans-serif;font-size:16.363636016845703px"><br></div><div><div>(:select '* :from 'table-1</div><div> :inner-join 'table-2 :on (:= 'table-1.a 'table-2.b)</div>
<div> :inner-join 'table-3 :on (:= 'table-2.c 'table-3.d))</div></div><div><br></div><div><font face="arial, sans-serif"><span style="font-size:16.363636016845703px">which produces a chained join expression:</span></font></div>
<div><font face="arial, sans-serif"><span style="font-size:16.363636016845703px"><br></span></font></div><div><font face="arial, sans-serif"><span style="font-size:16.363636016845703px">(SELECT * FROM table_1</span></font></div>
<div><font face="arial, sans-serif"><span style="font-size:16.363636016845703px"> INNER JOIN table_2 ON (table_1.a = table_2.b) INNER JOIN table_3 ON (table_2.c = table_3.d))</span><br></font></div><div><font face="arial, sans-serif"><span style="font-size:16.363636016845703px"><br>
</span></font></div><div><font face="arial, sans-serif"><span style="font-size:16.363636016845703px">However, these chained join expressions behave differently than nested ones when mixing different types of joins, and I need the behavior of the nested expression. I tried this:</span></font></div>
<div><font face="arial, sans-serif"><span style="font-size:16.363636016845703px"><br></span></font></div><div><font face="arial, sans-serif"><span style="font-size:16.363636016845703px"><br></span></font></div></div>