D
Dan Neely
I have an lnkItemState table and want to get the number of records in
in that have each value of stateId.
if lnkItemState, and lkupState contained the following:
lnkItemState
itemID StateID ...
1 1
2 1
3 1
4 2
5 2
lkupState
StateID ...
1
2
3
I'd like my query to return:
StateID ItemCount
1 3
2 2
3 0
How would I write this?
in that have each value of stateId.
if lnkItemState, and lkupState contained the following:
lnkItemState
itemID StateID ...
1 1
2 1
3 1
4 2
5 2
lkupState
StateID ...
1
2
3
I'd like my query to return:
StateID ItemCount
1 3
2 2
3 0
How would I write this?