the flag in the members table which tells you which detail table to look in...
... implies two SELECTs, one for the member, then an "if" statement in your application language which controls which of the details tables you go after next
better would be, if there aren't ~too~ many different details tables, simply to LEFT OUTER JOIN to all of them
that's just one query instead of two
for further information, search
supertype/subtype
