SQL Tutorial : DRL / DQL - WHERE CLAUSE
Let's learn about next topic: WHERE CLAUSE
WHERE CLAUSE:
***************
- FILTERS THE SELECTION FROM SAME TABLE OR FROM DIFFERENT TABLE USING JOIN
- WHERE CLAUSE => COLUMNS , OPERATORS , CONSTANTSeg:
- SELECT EMPLOYEE_ID,LAST_NAME,SALARY
FROM EMPLOYEES
WHERE EMPLOYEE_ID=100
- SELECT EMPLOYEE_ID,LAST_NAME,SALARY,DEPARTMENT_ID
FROM EMPLOYEESWHERE DEPARTMENT_ID=20
- SELECT EMPLOYEE_ID,LAST_NAME,SALARY ,HIRE_DATE
FROM EMPLOYEESWHERE HIRE_DATE >'01-JAN-1998'
- SELECT EMPLOYEE_ID,LAST_NAME,SALARY ,HIRE_DATE
FROM EMPLOYEESWHERE HIRE_DATE ='07-FEB-1999'
No comments:
Post a Comment