我的数据库中有这样设计的标签:
Table: Item
Columns: ItemID, Title, Content
Table: Tag
Columns: TagID, Title
Table: ItemTag
Columns: ItemID, TagID
//example -- this is the right sidebar of stackoverflow
c# × 59279
sql × 14885
asp.net-mvc × 9123
linq × 4337
tags × 339
如果我想知道每个标签的计数,例如 stackoverflow 如何计算他们的标签,我该怎么做?我会执行什么样的查询。我对常规 sql 和 linq 都开放