Reassert uniqueness by pin
and doc_no
in default.vw_pin_sale
#662
Labels
bug
Something isn't working
pin
and doc_no
in default.vw_pin_sale
#662
default.vw_pin_sale
is supposed to be unique bypin
anddoc_no
when mutisales are included and bydoc_no
when they are not. This still holds true when multisales are excluded, but no longer seems to be the case when they're included. I'm not sure when this became the case since many of the sales in question are from over a decade ago.This issue is propegating from
iasworld.sales
. We can see thatyields four rows spread over two different dates, all with the same price and doc_no, across two pins. This shows up in
default.vw_pin_sale
, which shouldn't be the case - we should only get two rows here, one for each pin for a sale on 1/1/2011.The text was updated successfully, but these errors were encountered: