<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>17 Jun 2020 13:07:52 Z</lastBuildDate><pubDate>16 Jun 2020 23:28:20 Z</pubDate><description>Hi&#13;
&#13;
&#13;
Is there a way to use a data source with a select that returns more than one table?&#13;
&#13;
&#13;
&#13;
ds is data source&#13;
&#13;
&#13;
sql is string = [&#13;
&#13;
select * from order where  id = 1;&#13;
&#13;
select * from details where orderid = 1;&#13;
&#13;
]&#13;
&#13;
&#13;
IF HExecuteSQLQuery(ds,hQueryWithoutCorrection,sql) then&#13;
&#13;
&#13;
end&#13;
&#13;
&#13;
&#13;
however it always returns only the first table;&#13;
&#13;
&#13;
there is something along these lines:&#13;
&#13;
ds.table [1]  (accessing result of the first select)&#13;
ds.table [2] (accessing result of the second select)&#13;
&#13;
?</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67873-datasource-with-multiselect/read.awp</link><title>DataSource with multiselect</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>PeHoBe</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67873-datasource-with-multiselect-67877/read.awp</comments><pubDate>17 Jun 2020 13:07:52 Z</pubDate><description>Hi David,&#13;
&#13;
I think you'll need to take a speed course on SQL first.&#13;
SQL-wise this simply can't work.&#13;
This however may work:&#13;…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67873-datasource-with-multiselect-67877/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67873-datasource-with-multiselect-67877/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67873-datasource-with-multiselect/read.awp">DataSource with multiselect</source><title>Re: DataSource with multiselect</title></item><item><author>PeHoBe</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67873-datasource-with-multiselect-67876/read.awp</comments><pubDate>17 Jun 2020 12:57:26 Z</pubDate><description>Hi David,&#13;
&#13;
I think you'll need to take a speed course on SQL first.&#13;
SQL-wise this simply can't work.&#13;
This however may work:&#13;…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67873-datasource-with-multiselect-67876/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67873-datasource-with-multiselect-67876/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67873-datasource-with-multiselect/read.awp">DataSource with multiselect</source><title>Re: DataSource with multiselect</title></item><item><author>achiado</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67873-datasource-with-multiselect-67875/read.awp</comments><pubDate>17 Jun 2020 12:17:29 Z</pubDate><description>Hi David,&#13;
I think it is not possible to do that...&#13;
&#13;
What you can do is:&#13;
&#13;
sql is string = [&#13;
select *&#13;
from order a&#13;
LEFT OU…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67873-datasource-with-multiselect-67875/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67873-datasource-with-multiselect-67875/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67873-datasource-with-multiselect/read.awp">DataSource with multiselect</source><title>Re: DataSource with multiselect</title></item></channel></rss>
