In MySQL, can I select columns only where something exists?
For example, I have the following query:
select phone, phone2 from jewishyellow.users wh
SELECT phone, phone2 FROM jewishyellow.users WHERE phone like '813%' and (phone2 <> "");
May need some tweakage depending on what your default value is. If you allowed Null fill, then you can do "Not NULL" instead, which is obviously better.