Saturday, May 8, 2010

SQL Comparison Operators

0 comments
= Equal
<> Not Equal
> Greater than
>= Greater than or equal
< Less than
<= Greater than or equal
Examples:
SELECT EMPNO, LASTNAME, SALARY
FROM EMP

WHERE SALARY >= 20000

SELECT LASTNAME, FIRSTNAME, JOB
                                    FROM EMP
                                    WHERE JOB <> 'DESIGNER'

0 comments: