By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
6 rows affected
user_id | denied_count | permitted_count | limited_count |
---|---|---|---|
25 | 1 | 1 | 0 |
139 | 1 | 0 | 3 |
Msg 8120 Level 16 State 1 Line 2
Column 'permissions.permission' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.