Forum Moderators: coopster
IF (TableA.Flag='yes')
Query: Select * from TableA where TableA.FirstName=TableB.FirstName
ELSE
Query: Select * from TableA
I want to have this logic as a single MySQL query. (Otherwise a PHP/MySQL solution could bring all values and build the query dynamically). Any hint on how I can do such thing?