I have a situation where I need to execute two different queries in MySql is it possible to do so in MySql. It is select query.
eg. Query1: Select * from table1
Query2: Select * from table2
Now how do I execute these query
conditonally
select * from if(somecondition ) then Query 1 else query 2
IF()control flow function. However, it is difficult to tell whether this is what you need. I think you'll have to provide examples of data, table structure and desired output.