I have a database which has a user's real age and the age that people have guessed them to look like in an uploaded photo.
I want to find the photos which have the greatest difference between guessed age and actual age. What Query could I run?
For example, the two rows that I am interested in are as follows.
age | avg
18 | 34.45
32 | 33.23
45 | 28.21
Thank you
Best Answer
The query below will return the maximum of the difference age from the guessed age:
Sample execution with given sample data:
Working Demo: http://rextester.com/BSEEG25743