Hi, I'm wondering how to create a query that will filter data from a table based on the oldest date of apperance.
For example: I have a table tblCustomerDateComment there I put comments (many per one customer) to customers.
It consists of 3 fields:
- customerID (type: number)
- comment (type: text)
- date (type: date)
If it is filled with following data:
1, 'create a customer', 2014
1, 'customer stops to pay!', 2015
1, 'delete customer', 2016
2, 'create a customer', 1990
2, 'contact details updated', 1991
then I want my query to returns exact two rows (rows count = customers count):
1, 'create a customer', 2014
2, 'create a customer', 1990
do you guys know what statement should i put into "date" field criteria within a query to do it? thanks in advance!