By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
hotelid | departmentid | cnt | min_cnt |
---|---|---|---|
1 | A | 1 | 4 |
2 | B | 2 | 1 |
2 | C | 2 | 1 |
3 | D | 3 | 1 |
3 | E | 3 | 1 |
3 | F | 3 | 1 |
Msg 208 Level 16 State 1 Line 1
Invalid object name 'T'.