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