SELECT 5 + 3 AS Addition, 10 - 4 AS Subtraction, 6 * 2 AS Multiplication, 16 / 4 AS Division;
SELECT 5 = 5 AS Equal, 10 <> 5 AS NotEqual, 8 > 3 AS GreaterThan, 3 < 7 AS LessThan;
DECLARE @x INT;
SET @x = 10;
SELECT @x AS Result;
SELECT dbo.Employee.Name FROM dbo.Employee;
DECLARE @a INT = 5, @b INT = 3;
SELECT @a & @b AS BitwiseAND, @a | @b AS BitwiseOR, ~@a AS BitwiseNOT;
SELECT employee_id FROM Employees
UNION
SELECT employee_id FROM FormerEmployees;
SELECT product_name FROM Products WHERE price > 50;
SELECT first_name + ' ' + last_name AS full_name FROM Employees;
DECLARE @total INT = 10;
SET @total += 5;
SELECT -5 AS Negation, NOT 1 AS LogicalNOT;
SELECT product_name FROM Products WHERE in_stock = 1 AND price < 50;