what is structure and relation of poeple with layer table (how layer related to people)
urtrivedi
Posting Virtuoso
1,714 posts since Dec 2008
Reputation Points: 299
Solved Threads: 362
Skill Endorsements: 24
if I see expected result I guess no need to join tables, you can simple do following query with only layer table
select layer_id, count(*) count from layer group by layer_id
urtrivedi
Posting Virtuoso
1,714 posts since Dec 2008
Reputation Points: 299
Solved Threads: 362
Skill Endorsements: 24