Ok, maybe I have now a wrong understanding.
Right now I use a trigger like this.
Code:
create trigger unique no cascade
before insert on db2inst1.table
referencing new as n
for each row mode db2sql
set n.row_id = generate_unique()
I am right that this are a sequence or?
This make every row unique, but my problem is
that I sometimes have two rows from the same measurement
and in this case, this two rows needs to have the same "unique" ID.
The reason behind is, I will use this as a reference for a different table with detail information from this measurement.
I will have a clear relation between this two different tables.
Sorry if I have a wrong understanding
