I have a table and want to insert rows which falls into to range of ID columns separately for each grouped records.to achieve this i wrote a case query on table 2 but yet n