In reply to Re: Looking for neater solution with dynamic query by jZed in thread Looking for neater solution with dynamic query by pg