I wonder if there is any way to improve this selection:
SELECT * FROM table WHERE id <> 15 AND id <> 17 AND id <> 23 ... id <> N
I do not have a certain interval defined and the ids
are selected by the checkbox in html, that is, I can have N ids. Is there any syntax in SQL or SQLServer that can improve this type of query?