Answer the question
In order to leave comments, you need to log in
How to organize a selection by date in SQLite?
Please tell me how to organize a selection from the table by two dates.
For example, there is a table "persons" (see attachment) Please tell me
how to select values from the fields "name", "date1" from the table, but at the same time include records in the response only with the maximum date of the "date2" field.
That is, the response should look like this:
Example DB:
test_BDtest.db - Download file
Answer the question
In order to leave comments, you need to log in
Compose a subquery grouped by name and maximum date. Then to connect with the main table on the fields "name" and "date2".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question