select  MET_MAX meterrollover,MET_LAST lastreading,MET_CODE meter,MET_DESC description,
MET_ORG meterorg FROM r5meters,r5userorganization WHERE NOT EXISTS
(SELECT * FROM r5objusagedefs where met_code = oud_meter AND NOT
(oud_meter = <param.metercode>  AND oud_object= <param.object>
AND oud_object_org =  <param.object_org> AND  NULL  = <param.pagemode>))
AND met_uom =  <param.uom>  AND ( uog_common = '+' OR met_org =  <control.org>)
AND met_org = uog_org AND uog_user = <parameter.r5user> order by MET_CODE ASC