• agree with pokitlok I always do the same. but some times I use temp table , must of the time to avoid cursors.

    Pedro R. Lopez
    http://madurosfritos.blogspot.com/[/url]