tests for values that
match a specified pattern
(footnote1)
|
||
proc sql outobs=12; title 'Equatorial Cities of the World'; select City, Country, Latitude from sql.worldcitycoords where Latitude between -5 and 5;
libname sql 'SAS-library';
proc sql;
title1 'Country Names that Begin with the Letter "Z"';
title2 'or Are 5 Characters Long and End with the Letter "a"';
select Name
from sql.countries
where Name like 'Z%' or Name like '____a';
libname sql 'SAS-library';
/* incorrect output */
proc sql outobs=12;
title 'World Features with a Depth of Less than 500 Feet';
select Name, Depth
from sql.features
where Depth lt 500
order by Depth;