G
Guest
My problem
2 tables:
PROBLEM
PROBLEM: PROBLEM_ID
example
PROBLEM_ID
22
HISTORY
HISTORY:HISTORY_ID
HISTORY
ROBLEM_ID
HISTORY:ACTIVITY (Options are 'BEGIN' or 'END')
HISTORY:NUMBER
example
HISTORY_ID PROBLEM_ID ACTIVITY NUMBER
1 22 BEGIN 2
2 22 END 2
3 22 BEGIN 1
4 22 END 6
For each PROBLEM
ROBLEM_ID there can be several HISTORY records, each BEGIN
has a corresponding END, I'm looking for a way to add the HISTORY:NUMBER for
the corresponding BEGIN / END?,
I can do a query which brings back both BEGIN & END but the next row brings
back the 1st BEGIN with the 2nd END
2 tables:
PROBLEM
PROBLEM: PROBLEM_ID
example
PROBLEM_ID
22
HISTORY
HISTORY:HISTORY_ID
HISTORY

HISTORY:ACTIVITY (Options are 'BEGIN' or 'END')
HISTORY:NUMBER
example
HISTORY_ID PROBLEM_ID ACTIVITY NUMBER
1 22 BEGIN 2
2 22 END 2
3 22 BEGIN 1
4 22 END 6
For each PROBLEM

has a corresponding END, I'm looking for a way to add the HISTORY:NUMBER for
the corresponding BEGIN / END?,
I can do a query which brings back both BEGIN & END but the next row brings
back the 1st BEGIN with the 2nd END