How to calculate the data correctly with the help of 'count' or perhaps in some other way data from the database?
There are 5 fields in the table, in the field there are 6 options for the values:
1_day - Выходной, Рабочий, Отгул, Отпуск, Прогул, Больничный 2_day - Выходной, Рабочий, Отгул, Отпуск, Прогул, Больничный 3_day - Выходной, Рабочий, Отгул, Отпуск, Прогул, Больничный 4_day - Выходной, Рабочий, Отгул, Отпуск, Прогул, Больничный 5_day - Выходной, Рабочий, Отгул, Отпуск, Прогул, Больничный How to calculate the number of days off in all fields?
Example:
1_day = Выходной 2_day = Выходной 3_day = Рабочий 4_day = Выходной 5_day = Отгул