A unique identifier is a value which identifies a record uniquely and that means no other record will have that value. From what you said, your Query 2 contains the identifier but it is not a unique identifier.
Try using 'max' function for the identif...
Try using 'max' function for the identif...