How to add a type of constraint? SOLVED

If there is a data about a car and its info in one database. If two users copied the data and added extra data in another database. How do you retrieve the name of the car without retrieving the copies that both users created?

Tried to copy the unique id of the first data onto the second one and tried retrieving it by the id but it won’t show.