Suppose there is such a query:
SELECT t.type_condition AS pay, t.type_condition AS orders, t.type_condition AS news, t.type_condition AS other, s.login AS login, s.telephone AS telephone FROM `vixen_erps_services_sms` s INNER JOIN `vixen_erps_services_type` t ON t.type_id = s.index2 Can I, after ON write several join conditions? For example:
SELECT t.type_condition AS pay, t.type_condition AS orders, t.type_condition AS news, t.type_condition AS other, s.login AS login, s.telephone AS telephone FROM `vixen_erps_services_sms` s INNER JOIN `vixen_erps_services_type` t ON t.type_id = s.pay, s.orders, s.news, s.other And if not, how? In the fields pay , orders , news , other tables are always for one of the four digits from 1 to 4, for the others - 0. I do this so that instead of numbers in the table on the page the words are displayed. For 1 - 4 - "Enabled", for 0 - "Off". How can I check all the fields?
UPDATE:
There are tables that need to be combined in order to store numbers in a table, and display the contents as words. And this caused me difficulty, I just can’t think of a working request.



0andВыключен? - Grundy