Report: Number of people with the same last and first name ordered alphabetically
Jump to navigation
Jump to search
Description: Number of people with the same last and first name ordered alphabetically, e.g. Adams, Adam 22
Copy and paste the text between the lines into the reports section below "OR Leave Display, Criteria and Sort fields blank and enter direct SQL SELECT statement here:" and give it the title you think is appropriate
SELECT lastname, firstname, COUNT(CONCAT(lastname, firstname)) AS Number FROM tng_people GROUP BY lastname, firstname HAVING COUNT(CONCAT(lastname, firstname))>1 ORDER BY lastname, firstname