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