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

How to get the arclen between two curve points in Maya? -

C++ Linked List -

git svn - Unignore directories in git-svn (adding directories to a sparse checkout) -