You use a unique ID & key fields usually and do data checks.
Here is a free course for learning databases:
SQL and Relational Databases 101[
^]. Take the time to do this or another course and learn the basics. This is a good investment in time that will save you countless hours of frustration.