In reply to Re^4: Looking for neater solution with dynamic query by Anonymous Monk in thread Looking for neater solution with dynamic query by pg