SELECT 
p.codenum              
FROM procedurecode p  
where  
DatetStamp > <@OPENDENTAL_LASTD@>
order by p.codenum