You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this query helps find dupe bills between the two lis systems
with dupes as (
selectA.idas a_id,
B.idas b_id
from
bill as A
inner join bill as B using (title)
inner join billaction B_action onB.id=B_action.bill_idleft join billaction A_action onA.id=A_action.bill_idandA_action.date=B_action.dateandA_action.description=B_action.descriptionwhere
length(A.identifier) >13and length(B.identifier) <13andA.identifierlike'%2023%'andB.identifierlike'%2023%'group byA.id,
B.idhavingcount(*) filter (
whereA_action.id is null
) =0
)
select*from
dupes
inner join bill A on a_id =A.idinner join bill B on b_id =B.id;
The text was updated successfully, but these errors were encountered:
this query helps find dupe bills between the two lis systems
The text was updated successfully, but these errors were encountered: