i'm trying to write a MySQL query using phpmyadmin, I need to take the Maximun 'Site' In 'Value1' but, with the condition of having 'Value2'>10 OR 'Value3' > 10.
In this image i show the Expected Result.
Thanks.
I Try this, but it does not work
SELECT Value1,Value2,Value3,Value FROM mytable b1
WHERE Value2= ( SELECT MAX( b2.Value2) FROM mytable b2 WHERE b1.Value1
=b2.Value1
)
Please, i nedd a general scheme to solve this problem.