Answer the question
In order to leave comments, you need to log in
How to scatter values in a column in MySql?
select distinct a.object_id as number/*'Номер заявки'*/,
a.value_text as 'Описание проблемы',
a.value_date as 'Начало', a.value_date as 'Конец'
from dynamic_field_value as a
Answer the question
In order to leave comments, you need to log in
The organization is certainly not so hot. It would be easier to immediately add a second end date field.
And so, if, when changing the status, another line is written with a common identifier object_id. Then do COUNT('object_id') as count GROUP BY object and all results where it is greater than 1 will be ignored.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question