CREATE TABLE employees (department_id VARCHAR2, salary VARCHAR2, commission_pct VARCHAR2)

display all the information of employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40.
SELECT * FROM employees WHERE salary BETWEEN 8000 AND 12000 AND commission_pct <> "null" OR department_id <> 40
SELECT * FROM "employees" WHERE ("commission_pct" <> "null" OR "department_id" <> 40) AND ("department_id" <> 40 OR "salary" <= 12000) AND ("department_id" <> 40 OR "salary" >= 8000)