I am trying to get all unique rows along with considering one row of multiple rows having almost similar records with one duplicate column in the row
DeptId || DeptNo || DeptDate
==============================
1 || 111 || 12-09-2021
2 || 112 || 12-09-2021
3 || 113 || 12-09-2021
1 || 111 || null
1 || 111 || 11-09-2021
Expected result:
DeptId || DeptNo || DeptDate
=================================
1 || 111 || null or 12-09-2021 or 11-09-2021 //Consider any but
// only one row should be considered
2 || 112 || 12-09-2021
3 || 113 || 12-09-2021