CompanyID EventID Date
101 E001 01-jan-12
101 E002 05-May-13
102 E003 10-nov-13
102 E004 05-apr-13
103 E005 20-jul-12
104 E006 02-may-13
Hi , I have a table as shown above, I would like to retrieve that if a company has attended two events I want to pull only the events that first joined. Ex: for company 101 E001 01-jan-12 for 102 E004 05-apr-13. How the query can be to achieve this?
thanks