28 Feb
2014
28 Feb
'14
1:07 a.m.
Hello, Is there an S-SQL expression which will produce nested join expressions like this one: select * from table_1 inner join table_2 inner join table_3 on table_2.c = table_3.d on table_1.a = test_2.b; I know I can do this: (:select '* :from 'table-1 :inner-join 'table-2 :on (:= 'table-1.a 'table-2.b) :inner-join 'table-3 :on (:= 'table-2.c 'table-3.d)) which produces a chained join expression: (SELECT * FROM table_1 INNER JOIN table_2 ON (table_1.a = table_2.b) INNER JOIN table_3 ON (table_2.c = table_3.d)) 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: