我想从一个表中选择列,并根据另外两个表的连接进行计数,我该怎么做?
这是我写的计数查询:
SELECT COUNT(*) AS num_review FROM approved_reviews m, reviews u where
m.review_id_=u.id and u.item_id =? and m.approved=1
我想加入它
select item_id, item_name, item_price from items ?
我该怎么做?