Question: how to subtract query in sql server?
Answer: SQL | MINUS Operator. The Minus Operator in SQL is used with two SELECT statements. The MINUS operator is used to subtract the result set obtained by first SELECT query from the result set obtained by second SELECT query.