Skip to content
Advertisement

SQL return max in unnest

I have the following query:

What should I do if I only want the query to return one array.col1 per row in table_a (let’s say I want only the max value for each case)?

Advertisement

Answer

You can use a subquery:

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