Notes
We can't create a Master-detail relationship on existing records. To do that, we have to create a lookup relationship for that record and then convert it into master detail.
Or you can delete all the existing records first, then you can create the Master-detail relationship.