want to get distinct value on self join. even i used group by and distinct keyword but in fetched data is not distinct here is query
SELECT D