I am in an intro to databases class. I have to list the earliest contact date of an employee along with their contactID
and contactType
. The code I have that gives me the earliest date is:
SELECT MIN (Contact.ContactDate) AS FirstContact
FROM Contact;
If I try adding on the other columns such as:
SELECT MIN (Contact.ContactDate) AS FirstContact, ContactID, ContactType
FROM Contact;
I get an error message. I've tried nesting the select statements but that just turns into a bigger mess. I am obviously not using the correct syntax. I've rearranged everything and nothing is giving me the results I need.