mysql - JOIN with an IF condition? -


i have main table , have 2 tables joined. want join table if employee male , table b if employee female. possible this?

how about

  select ....   main join on ...   male union   select ....   main join b on ...   female 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -