I am working on a dataset with three different columns: pile , position and info .
There is no duplicate in the database, but it can happen that for one combination of pile and position in the info column there are one or two different texts. And these are the records that I tried to find.
I tried the following
SELECT COUNT(DISTINCT(`pile`, `position`)) FROM db;
But an error message is received
ERROR 1241 (21000): Operand should contain 1 column(s)
Is there a way to find different combinations of values ββin two columns?
source share