$ 0 0 hi, I just tried it in the normal SQL, Hope this helps to you! sel a, rank(a) from (sel (add_months(dob,-24) (format 'yyyymm'))(varchar(6)) a from tb_name where dob between add_months(current_date,-24)+1 and current_date group by a)dt Regards, Mohan
hi,
I just tried it in the normal SQL, Hope this helps to you!
sel a, rank(a) from
(sel (add_months(dob,-24) (format 'yyyymm'))(varchar(6)) a from tb_name
where
dob between add_months(current_date,-24)+1 and current_date group by a)dt
Regards,
Mohan