Does this logic fetch the result which is unique with respect to Name or what ?
I need the unique keys with respect to name.
If your code satisfies this condition, kindly let me know where do we mention that the distinct values are with respect to name (as we have mentioned both, name and age
)