For each customer, find the date of their very first and very last transaction. Return first_name, last_name, first_tx_date, and last_tx_date. Only include customers who have transactions. Sort by first_tx_date.
Schema
🔑idINT
first_nameTEXT
last_nameTEXT
emailTEXT
phoneTEXTNULL
date_of_birthTEXT
cityTEXT
stateTEXT
countryTEXT
created_atTIMESTAMP
postgresql
Run your query to see results
Press Ctrl + Enter to execute