#1 2020-05-25 12:02:46

bhutan
Member
Registered: 2020-05-07

Run multiple queries in Query

Hello Admin,

Is it possible to run multiple queries in Query: under dynamic list.

Regards,
bhu.

Offline

#2 2020-05-25 12:37:50

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Run multiple queries in Query

Hi bhutan,

you can run subqueries of course in the main query. Something like select * from (select * from mytable) a

Regards,
Eduardo

Offline

#3 2020-05-25 14:37:49

bhutan
Member
Registered: 2020-05-07

Re: Run multiple queries in Query

Hello Eduardo,

I mean like:

select * from table1
select * from table2

Thanks,
Bhu.

Offline

#4 2020-05-26 06:08:44

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Run multiple queries in Query

Hi bhutan,

a dynamic list shows you the result of one query. If both tables contain the same fields you can make a UNION query: https://www.w3schools.com/sql/sql_union.asp :

select * from table1
UNION
select * from table2

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB