Can someone "break down" the syntax here. Please. I need to learn this ASAP.
From my limited experience -
firstname and lastname are columns and list is a table.
count(id)>1 is used to check if there is more than one row with the same...
That's it. I don't know what this does but I need to understand it.
SELECT firstname, lastname, list.address FROM list
INNER JOIN (SELECT address FROM list
GROUP BY address
HAVING count(id) > 1) dup
ON list.address = dup.address
dupis a name for the table expression in the sub-query; sometimes (preferably, in my experience) prefixed byAS.dupis an identifier, not a keyword. The dot separates the table name (dup) from the column nameaddress. This is standard SQL notation...how much SQL do you actually know?