sql is not query code example Example: is not in sql server select * from TableName(nolock) where onlineUser!=('Y')