說我有兩個JSON字符串如下差異的JSON字符串: [{"RowId":102787,"UserId":1,"Activity":"This is another test","Timestamp":"2017-11-25T14:37:30.3700000"}]
[{"RowId":102787,"UserId":2,"Activity":"Testing the Update functio
試圖讓不同的行的計數在一個查詢中,並且在一個行 表1 .. ID name
1 a
2 b
3 c
表2 ID Parent status
1 1 0
2 1 1
3 1 0
4 1 0
5 1 2
6 2 0
期望結果(不同子元素的計數) ID name 0a 1s 2s
1 a 3(count of 0s) 1 (counts of 1s)