What query will count the number of rows, but distinct by three parameters?
Example:
Id Name Address ============================== 1 My
To get a count of the number of unique combinations of id, name and address:
id
name
address
SELECT Count(*) FROM ( SELECT DISTINCT id , name , address FROM your_table ) As distinctified