PQTIII
IS-IT--Management
- Sep 21, 2004
- 110
I want to list only the rtrim[operid] that contain a 5 digit string. I used operid like '_____' and it list all 5 digit operids, but it also list 4 digit ones.
select distinct rtrim(OperId)as OPID , rtrim(OperName) as OP from vWorkers
where OperName is not null and OperId like '____' order by OP
How do I get only fields containing exactly 5 digits to be listed???
Thanks
pt
select distinct rtrim(OperId)as OPID , rtrim(OperName) as OP from vWorkers
where OperName is not null and OperId like '____' order by OP
How do I get only fields containing exactly 5 digits to be listed???
Thanks
pt