> > result = store.find(GearOp, SQL("CAST(gear.op.id AS character) LIKE '9%'")) > maximum = result.max(GearOp.id) > Ok, Thank you James.