BETWEEN
AND
values that occur within an inclusive range
where salary between 70000
and 80000
CONTAINS
or ?
values that contain a specified string
where name contains 'ER'where name ? 'ER'
IN values that match one of a list of values
where code in ('PT','NA','FA')
IS MISSING
or IS NULL
missing values
where dateofbirth is missingwhere dateofbirth is
null
LIKE
(with %, _)
values that match a specified pattern
where address like '% P%PLACE'
=* values that "sound like" a specified value
where lastname=* 'Smith'
ANY values that meet a specified condition with respect to
any one of the values returned by a subquery
where dateofbirth < any (select dateofbirth from
sasuser.payrollmaster where jobcode='FA3')
ALL values that meet a specified condition with respect to
all the values returned by a subquery
where dateofbirth < all (select dateofbirth from
sasuser.payrollmaster where jobcode='FA3')
EXISTS the existence of values returned by a subquery
where exists (select * from sasuser.flightschedule
where fa.empid= flightschedule.empid)
Conditional Operators
PROC SQL: A Brief Overview