name -- country -- order
john Abraham -- USA -- burgar
john Abraham -- USA -- cake
john Abraham -- USA -- sugar
CR RONALDO -- PORT -- burgar
MESSI GAR -- ARG -- burgar
john Abraham -- FRA -- burgar
i need the result to be
Count
4
the result is 4 because "john Abraham from USA has 3 results but i counted as 1"
2
Answers
Count distinct is not limited to 1 column
https://mariadb.com/kb/en/count-distinct/
https://dev.mysql.com/doc/refman/8.0/en/aggregate-functions.html#function_count