我有以下架构,并希望使用group
by 来按 TypeName 获取成员数:
我编写了返回所有结果的查询:
Select *
from Members
join MemberType on Members.MemberID = MemberType.MemberID
join Types on Types.TypeID = MemberType.TypeID
Group by MemberType.TypeID
我有以下架构,并希望使用group
by 来按 TypeName 获取成员数:
我编写了返回所有结果的查询:
Select *
from Members
join MemberType on Members.MemberID = MemberType.MemberID
join Types on Types.TypeID = MemberType.TypeID
Group by MemberType.TypeID