SUPER ones and most of accounting.
Normally with ones table 0 -> all or 17 -> this one, could.
In SQL should be something like that
SELECT [Role ID]
FROM [your database].[dbo].[Permission]
where [Object Type]='1' and ([Object ID]='0' or [Object ID]='17')