I have a MySQL relational database which stores customers in one table, and then another table which stores various contacts/conversations/engagements with them. See the examplar schema below:
Customers
customerId
forename
surname
Contacts
contactId
customerId
correspondenceDescription
contactDate
I need to be able to query the database and be able to access the date (contactDate) of the most recent time we have been in touch with them. I've seen a few other questions on here, but I dont seem to be able to find one which suits my needs.
Can anyone help? Many thanks.