Ok, so maybe Im missing the point here and dont expect any code cos Im a support monkey not a database monkey, but he is not looking for the min value, he is looking for the value of id_num on the first record when group_num changes. hence the example given from original post :
id_num group num
902 738
456 738
012 738
921 602
223 602
114 559
948 559
335 559
so only 902, 921, 114 note these are not the min values, but the first values in the record when group_num changes???
id_num group num
902 738
456 738
012 738
921 602
223 602
114 559
948 559
335 559
so only 902, 921, 114 note these are not the min values, but the first values in the record when group_num changes???

Comment