I have a table that contains many records 6 mil today and may grow to over 20m when done.
I have a column called alarm_id which can be common to different rows of data. I have other columns called action_a and userid.
When a new record comes in with a unique alarm_id the action_a filed is 'new' and the userid is= 'new'
When a user acknowledges the alarm another record is generated with the same alarm_id but action_a ='ACK' and userid is set to the user who acknowledged the alarm e.g. 'abc'
What I want to do is set the userid of the action_a 'new' message with the userid of the action_a 'ACK' message for every unique/distinct alarm_id value.
Any help is appreciated.
Thanks,
Frank B.
I have a column called alarm_id which can be common to different rows of data. I have other columns called action_a and userid.
When a new record comes in with a unique alarm_id the action_a filed is 'new' and the userid is= 'new'
When a user acknowledges the alarm another record is generated with the same alarm_id but action_a ='ACK' and userid is set to the user who acknowledged the alarm e.g. 'abc'
What I want to do is set the userid of the action_a 'new' message with the userid of the action_a 'ACK' message for every unique/distinct alarm_id value.
Any help is appreciated.
Thanks,
Frank B.