G
Guest
I have a table called "t_actions" that contains amongst others three fields
"action_ID", "OLP_ID" and "action_due_date". I'm trying to group the table
by the "OLP_ID" and display the "action_ID" of the earliest "action_due_date"
within the "OLP_ID" group.
I can create a query that groups the ""OLP_ID" and gives me the earliest
"action_due_date" as follows:
SELECT t_actions.OLP_ID, Min(t_actions.action_due_date) As
MinOfaction_due_date
FROM t_actions
GROUP BY T-actions.OLP_ID;
.... but can't work out how to get the "action_ID" value or indeed any other
values from the table without grouping them. I'd like to extract the
"action_ID" and then use this in another query to extract other fields for
this record.
Any help really appreciated.
Ian
"action_ID", "OLP_ID" and "action_due_date". I'm trying to group the table
by the "OLP_ID" and display the "action_ID" of the earliest "action_due_date"
within the "OLP_ID" group.
I can create a query that groups the ""OLP_ID" and gives me the earliest
"action_due_date" as follows:
SELECT t_actions.OLP_ID, Min(t_actions.action_due_date) As
MinOfaction_due_date
FROM t_actions
GROUP BY T-actions.OLP_ID;
.... but can't work out how to get the "action_ID" value or indeed any other
values from the table without grouping them. I'd like to extract the
"action_ID" and then use this in another query to extract other fields for
this record.
Any help really appreciated.
Ian