Report: All occuring third place levels, including frequency, ordered by place level

From TNG_Wiki
Jump to navigation Jump to search

Description: All occuring third place name levels, including frequency, ordered by place name level

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 LTRIM(REVERSE(SUBSTRING_INDEX(REVERSE(place),",",1))) AS Level_3, COUNT(*) 
AS Number FROM tng_places GROUP BY Level_3 ORDER BY Level_3