Skip to content

Commit

Permalink
corrige deduplicacao
Browse files Browse the repository at this point in the history
  • Loading branch information
pixuimpou committed Jan 13, 2025
1 parent f77ed04 commit e90c065
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions queries/models/bilhetagem/integracao.sql
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ from complete_partitions
where id_integracao not in (select id_integracao from integracoes_teste_invalidas)
qualify
row_number() over (
partition by id_integracao, id_transacao, priority
order by datetime_processamento_integracao desc
partition by id_integracao, id_transacao
order by datetime_processamento_integracao desc, priority
)
= 1

0 comments on commit e90c065

Please sign in to comment.