title: Conditional MySql Query
body: <p>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.</p>
  
  <pre><code> eg. Query1:  Select * from table1
       Query2: Select * from table2
  </code></pre>
  
  <p>Now how do I execute these query   </p>
  
  <p>conditonally</p>
  
  <pre><code>select * from if(somecondition ) then Query 1 else query 2
  </code></pre>