This clause is used to provide comparison of data, which restricts the rows from a table. A WHERE clause contains a condition that must be met and should directly follow the from clause. Comparison to date type data is not case sensitive. Character values are case sensate and Date values are format Sensitive (DD-MON-YY). The WHERE clause can compares.. Ø Values in columns Ø Literal Values Ø Arithmetic Expressions Ø Function Examples :- Display all those employees, who are working as CLERK. Ans : Select * from emp where job = ‘CLERK’; Display all those employees, who are working in deptno 20. Ans : Select * from emp where deptno=20; Display all those employees, who have been hired on 3 rd -dec-81. Ans : Select * from emp where hiredate=’3 rd -dec-81’; Display empno,ename,job,sal,deptno for all those empl...
Welcome to our blog for SQL and PLSQL. Here you will find about the SQL basic to advance level things along with PLSQL. Also you will get the latest SQL related Interview questions and answers. I hope you will get the things you are looking for here. Happy learning for SQL and PL-SQL.