M
M
mkgor12020-01-23 18:19:16
MySQL
mkgor1, 2020-01-23 18:19:16

Selecting rows with max value?

5e29b8fdcf2bf084891955.png
You need to get all the rows in which the date will be the maximum, with the same Post_id and Status
5e29b936f2fa5723000762.png
Please tell me how this can be done, I tried to do it in various ways, but nothing comes out.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2020-01-23
@mkgor1

Grouping by specified fields and maximum date. If you also need a code, then link the result to the main table by the specified fields and date.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question