You are not logged in.
Pages: 1
Is the following SQL realizable with the "TSQLRecord.createJoined" function or is there better alternatives?
I try to avoid running the SQL-script in the program due to fear of"SQL-Injection".
It's about an old legacy database. I have tested the function in simpler case where you use only one common field which work perfectly.
SELECT TE.AddressName, TC.Customername FROM tbl_A TA
join tbl_B TB ON TB.CustomerNo = TA.CustomerNo
join tbl_C TC ON TC.CustomerNo = TA.CustomerNo
join tbl_D TD ON TD.CustomerNo = TA.CustomerNo AND TD.AddressNo = TC.AddressNo
join tbl_E TE ON TE.AddressNo = TD.AddressNo
Delphi-11, WIN10
Offline
Offline
Pages: 1