update COLORS
set COLORS.AR = 'RED'
where COLORS.GCRS = 'FIRST'
and (case when max(NEWAPP."AGE") > 60
and count(NEWAPP."AGE") > 0)
I get an error that says “group function is not allowed here”
Does anyone know what I can do to prevent this error?
The title pretty much says everything I can about the objective.
If there really is no relationship between the tables
It would be very unusual, though, in a proper data model to have a situation where you want to do an uncorrelated subquery like this. Normally, there would be some column that relates the
colorstable to thenewapptable and you would want an additional predicate in theEXISTSsubquery for that relationship.