By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
(No column name) |
---|
Microsoft SQL Server 2014 (SP3-CU-GDR) (KB4535288) - 12.0.6372.1 (X64) Dec 12 2019 15:14:11 Copyright (c) Microsoft Corporation Express Edition (64-bit) on Windows NT 6.3 <X64> (Build 17763: ) (Hypervisor) |
7 rows affected
id_a | id_b | City | result |
---|---|---|---|
101 | 101 | NY | Ready |
102 | 102 | TN | Sold |
103 | null | TN | Missing |
104 | 104 | NY | Ready |
null | 105 | NY | Missing |
106 | 106 | TN | Ready |
107 | 107 | TN | Sold |
City | CNT | No_Ready | No_sold | No_Missing |
---|---|---|---|---|
NY | 3 | 2 | 0 | 1 |
TN | 4 | 1 | 2 | 1 |