i have two table
1) member
- member_id
- name
- address
- zip
2) property
- property_id
- property_name
- property_zip
i want to list all the member zip (without duplicate) and show the count of property for each zip code in a table
Member Zip | Property Count
95674 | 50
95852 | 90
95614 | 0
95070 | 5
its have multiple member with same zip code and also multiple property with same zip code
i don't want any repeat on the Member Zip output column.
i have 5 member with 92550 & 10 member with 82475, i have to show
92550
82475
& on property table i have 10 with zipcode 82475 and 4 with zip code 92550.
Final O/P
92550 (4)
82475 (10)
can anyone help me to find it ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…