hi r937,
it works very fine but I should describe my problem otherwise

:
the result of:
1. actual date is between inside data_from and date_to
example:
[name] [date_from] [date_to] [version]
a_______2001_______2010_____1____
a_______2002_______2008_____9____
b_______2000_______2009_____1____
should be used in:
2. highest version
end result:
[name] [date_from] [date_to] [version]
a_______2002_______2008_____9____
b_______2000_______2009_____1____
So we have two steps while the first one has higher prioraty.
PS: I use Oracle9.2
Thanks
Mike