kept first updated record instead of last
This commit is contained in:
parent
32c8ffb655
commit
d8501e2df7
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ with
|
|||
select
|
||||
v.*,
|
||||
row_number() over (
|
||||
partition by v.id_booking order by v.updated_at_utc desc
|
||||
partition by v.id_booking order by v.updated_at_utc asc
|
||||
) as rn
|
||||
from int_edeposit__verifications v
|
||||
where v.version = 'V1' and v.id_booking is not null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue