Hi Isomorphic,
I am currently evaluating SmartClient (v110_p2016-10-01 evaluation)
I wanted to get DataSource definition (ds.xml) for simple SQL command as follow
Suppose I have two table as follow
table a, consists of 3 fields : a_key, b1 and b2
table b, consists of 2 fields : b_key, b_name
both fields a.b1 and a.b2 are foreign key to table b.b_key
SELECT
a.a_key,
b1.b_name as b_name_1,
b2.b_name as b_name_2
FROM
a
LEFT JOIN b AS b1 ON (a.b1 = b1.b_key)
LEFT JOIN b AS b2 ON (a.b2 = b2.b_key)
I tried to use customSQL="true" but could not get the syntax right, despite of searching the doc.
Thank you,
I am currently evaluating SmartClient (v110_p2016-10-01 evaluation)
I wanted to get DataSource definition (ds.xml) for simple SQL command as follow
Suppose I have two table as follow
table a, consists of 3 fields : a_key, b1 and b2
table b, consists of 2 fields : b_key, b_name
both fields a.b1 and a.b2 are foreign key to table b.b_key
SELECT
a.a_key,
b1.b_name as b_name_1,
b2.b_name as b_name_2
FROM
a
LEFT JOIN b AS b1 ON (a.b1 = b1.b_key)
LEFT JOIN b AS b2 ON (a.b2 = b2.b_key)
I tried to use customSQL="true" but could not get the syntax right, despite of searching the doc.
Thank you,
Comment