Say for example I have a table:
Table: Message
| data | likes | dislikes |
How can I efficiently find the row that has the highest number of likes and dislikes i.e. most controversial. So for the following example:
{("Hello", 10, 5)
("Ola!", 5, 5)
("Ni Hao!", 2, 2)
("Wazzup!", 5, 7)}
"Hello" would be chosen.
Any help would be highly appreciated!