I have following table:
TableA
x y
----------------------
3 1
2 5
5 2
Now i want to update the value in column x, where the value in column y is lowest, something like that:
UPDATE TableA SET x = 1 WHERE y = min(y);
Then the first row should be x = 1 and y = 1.
But i get following error code:
Error Code: 1111. Invalid use of group function
How can i fix that?