SQL:Count Distinct to_Date to_Char last_day add_months Sysdae Group by
SQL:CountDistinctto_Dateto_Charlast_dayadd_monthsSysdaeGroupbyselect count ( distinct (di.docu_id || di.policy_no||to_char(di.scan_date, ' yyyymmdd ' ))),di.docu_id from docu_index di where di.s