I am not sure how this should work. You ignore the last 5 digits (or set them to 0) and still want to get unique values? How would you handle 512345 and 598765?
Getting the result you mentioned can be done by:
Code:
SELECT( col / 100000 ) * 100000
FROM ...
of course. (That's standard programming technique.)