hai, You can use UNION operator to join multiple result sets in the query itself. I think at that time u cann't face this problem. with regards manianand. ________________________________________________________________________ Yahoo! India Matrimony: Find your partner online. Go to http://yahoo.shaadi.com