我有三张桌子:
store
=====
name
address
city
state
country
tag ...,
post
=======
title
summary
tags ...
store_post_map
================
(mapping on store and post based on tag).
现在我想从映射表组中获取帖子计数city
,或者state
,PostgreSQL中的SQL是什么?country
store.id