'Can we use two where clauses at a time?

select ename, sal 
from emp 
where sal between 1500 and 3000 
where job = 'manager' and deptno = 30;

I am getting an error like "sql command not properly ended"

sql


Solution 1:[1]

You could write:

select ename,sal from emp 
where job='manager' and deptno=30 and sal between 1500 and 3000;

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Luuk