$ 0 0 need to find the minimum and maximum value from each row using dynamic query[from curr] will be given as inputTuky