How can I select last 10 rows with unique string1 entries and order them by id? Rows has following structure:
id | string1 | string2 | ... | stringN
Using GROUP BY string1 along with ORDER BY id DESC result contains unique rows, but not from the tail of table.
Thanks