The [authorityID] (TinyInt)
column will never be null
.
What I want is to return a 15
if there are no rows. With the query below I get nothing if there are no rows:
select top 1 isnull([authorityID],15)
from [docAuthority] with (nolock)
where [grpID] = 0 and [sID] = 42