Your question is SQL Validation and Duplicate Detection. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
What strategies do you use to perform database validation, and can you write a SQL query to find duplicate records in a patient database?