0
I want to sort by the day of the week and time
the data are coming as follows:
id, dia_hora
1 SEG-10h
2 QUI-11h
3 SEX-09h
query that works when you receive only the acronyms with no time:
SELECT id,dia FROM minhatabela ORDER BY (
FIELD(dia, 'DOM', 'SEG', 'TER', 'QUA', 'QUI', 'SEX', 'SAB')
)
Two different dice in the same column, wouldn’t it be better to separate that?
– Cristian
I think it would be impracticable given the size of the system that is already ready.
– Giovanni Dias