sql server - SQL query diversification -


how can diversify sql query in following manner:

if condition_a select * x
if condition b select * b x

it seems trivial operation, cannot find or figure out solution.

you can use if condition

if condition_a  begin  select * x  end if condition_b begin  select * b x end 

if there can 1 condition satisfied out of two, change second if else statement


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -