hi friends could help me complete a query
I have these records, from which I have to obtain day 1 the start date and the end date the day two start date and end date and so with the others, is what I get this way:
(SELECT date_game_large FROM tabla where journay=1 ORDER BY date_game_large LIMIT 1) as date_start;
(SELECT date_game_large FROM tabla where journay=1 ORDER BY date_game_large DESC LIMIT 1) as date_end;
I'm doing this query to do it for all days:
SELECT id_competition,
journay,
(SELECT date_game_large FROM tabla where journay=1 ORDER BY date_game_large LIMIT 1) as date_start,
(SELECT date_game_large FROM tabla where journay=1 ORDER BY date_game_large DESC LIMIT 1) as date_end
FROM tabla GROUP by journay
and they stay this way
but only does it with the 1st day, I do not know how to save the value of the day and pass it to the where to do it for all or how to do it so that it does day by day
could you help me, regards