I have a query that contains the following fields parent_event_number, linked_event_number, week_pattern, event_start, event_end, Effective, eff_wk
Each parent_event_number may have more than one linked_event_number. What I would like to do is group my query on parent_event_number, then display the linked_event_number, week_pattern, event_start, event_end, Effective, eff_wk fields for the Max of eff_wk. This will give me the most up to date linked event for the parent event.
Whats the easiest way to do this? I know I probably need to insert a subquery, but I struggle to get my head around these!! Can anyone help? Examples of subqueries that i have looked at always seem to be overly simple and never quite explain to me what i need!
Each parent_event_number may have more than one linked_event_number. What I would like to do is group my query on parent_event_number, then display the linked_event_number, week_pattern, event_start, event_end, Effective, eff_wk fields for the Max of eff_wk. This will give me the most up to date linked event for the parent event.
Whats the easiest way to do this? I know I probably need to insert a subquery, but I struggle to get my head around these!! Can anyone help? Examples of subqueries that i have looked at always seem to be overly simple and never quite explain to me what i need!