Identify patients who have overlapping prescriptions (two different medications where one's date range overlaps with another). Return the patient's full name, medication_1, medication_2, and the overlap start date (later of the two start dates). Show each pair once only.
Schema
🔑idINT
first_nameTEXT
last_nameTEXT
date_of_birthTEXT
genderTEXT
emailTEXT
phoneTEXTNULL
blood_typeTEXT
cityTEXT
stateTEXT
🔗insurance_idINTNULL
created_atTIMESTAMP
postgresql
Run your query to see results
Press Ctrl + Enter to execute