返回首页

请看下面的表结构
,PartID PartInstanceID PartInstanceName二手
1nbsp; 1nbsp; ; Anbsp NBSP,Y
1nbsp"; 2nbsp; Bnbsp; NBSP N
1nbsp; 3nbsp; Cnbsp; N
1nbsp; 4nbsp; Dnb​​sp; N
2nbsp; 5nbsp; Enbsp; NBSP,N
2nbsp"; 6nbsp; Fnbsp; N
3nbsp; 7nbsp; Gnbsp; NBSP,Y
4nbsp"; 8nbsp; Hnbsp; N
5nbsp; 9nbsp; Inbsp; NBSP,N
5nbsp"; 10nbsp; Jnbsp; NBSP,N
NBSP

谁能告诉我在LINQ查询得到以下输出

获得未使用的实例:PartID InstanceCount

1nbsp; NBSP 3
2nbsp"; 2
3nbsp"; NBSP 0
4nbsp; NBSP 1
5nbsp"; NBSP 2
NBSP
习惯实例:
PartID InstanceCount
1nbsp; NBSP 1
2nbsp"; {0 BR} 3nbsp"; 1
4nbsp; {0 BR} 5nbsp"; 0

请让我知道。

在此先感谢。| AmolPandurangBorkar

回答

评论会员: 时间:2
c