Skip to content
Advertisement

Select only one row by more conditions

This query is supported by PostgreSQL but H2 can not run query because of Over(partition by) . Question is how to select only one row with latest created time for different values in 2 columns.

Advertisement

Answer

use correlated subquery

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement