Issues from a WITH clause (CTE).
I have the following postgreSQL schema:
In the entries the same name can be repeated in many rows. For each name, I just want to keep the rows with the highest
But, I can't rewrite this in drizzle. Any help is greatly appreciated. Thanks!
In the entries the same name can be repeated in many rows. For each name, I just want to keep the rows with the highest
lastUpdatedAt, keeping other columns along. I can get these values using the following SQL query:But, I can't rewrite this in drizzle. Any help is greatly appreciated. Thanks!