Relative Content

Tag Archive for mysqlsql-order-byprisma

Prisma ORM how to order by GREATEST()

I have a database table with two columns updated_at and children_updated_at and I would like to show the latest modified records first based on the SQL function GREATEST(updated_at, children_updated_at).