Hi,
I have the following query:
SELECT wellist.WELL, event.JOB_TYPE, event.START_DATE,event.END_DATE, daily.DDATE
FROM daily, event, wellist
WHERE (((event.END_DATE) Is Null) AND ((event.I_KEY)=[daily].[i_key]) AND ((event.E_KEY)=[daily].[e_key]) AND ((wellist.I_KEY)=[event].[i_key] And (wellist.I_KEY)=[daily].[i_key]))
ORDER BY wellist.WELL, daily.DDATE;
I want this query to only show the last daily.DDATE, and furtermore I want to update the database so that the last DDATE is set as event.END_DATE.
Does anyone know how to do this? If I could get the query to only show the last DDATE, I could just use copy/paste to update the db.
tia
Kjell
I have the following query:
SELECT wellist.WELL, event.JOB_TYPE, event.START_DATE,event.END_DATE, daily.DDATE
FROM daily, event, wellist
WHERE (((event.END_DATE) Is Null) AND ((event.I_KEY)=[daily].[i_key]) AND ((event.E_KEY)=[daily].[e_key]) AND ((wellist.I_KEY)=[event].[i_key] And (wellist.I_KEY)=[daily].[i_key]))
ORDER BY wellist.WELL, daily.DDATE;
I want this query to only show the last daily.DDATE, and furtermore I want to update the database so that the last DDATE is set as event.END_DATE.
Does anyone know how to do this? If I could get the query to only show the last DDATE, I could just use copy/paste to update the db.
tia
Kjell