I need to fetch values that are not present in a column in another table. Currently what i am using is
and [tPlayerTag].TagId NOT IN (select RequiredTagId from dbo.tPrize(NOLOCK)
where RequiredTagId is not null)
This is present inside my where clause . It's working completely fine but i think it may slow down my query when dealing with a bigger table(tPrize). Is there any faster way to rewrite this logic ?