Describe a scenario where you had to perform database validation. What SQL queries did you write to verify the data?