On 9/27/2017 9:20:54 PM, "liviuslivius liviusliv...@poczta.onet.pl [firebird-support]" <firebird-support@yahoogroups.com> wrote:

group by + having
is your friend.
E.g.
Select field1, field2, count(*)
From tablex
Group by field1, field2
Having count(*)>1

But in your scenario i do not know if this is the solution. Question is if record was changed and in next update "restored" and once again changed is this duplicate or no?
If yes above query is ok if no then procedure is your friend.

And for the future change your audit trigger and check before if there was any change

Thank you, but I this isn't quite what I need. I need to match against all the records of a set (up to 8 rows per set) - not just individual rows.

--
Daniel
  • [firebird-supp... 'Daniel Miller' dmil...@amfes.com [firebird-support]
    • Re: [fire... liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
      • Re[2]... 'Daniel Miller' dmil...@amfes.com [firebird-support]
        • R... Svein Erling Tysvær setys...@gmail.com [firebird-support]
          • ... 'Daniel Miller' dmil...@amfes.com [firebird-support]
            • ... Svein Erling Tysvær setys...@gmail.com [firebird-support]
              • ... Svein Erling Tysvær setys...@gmail.com [firebird-support]
                • ... Svein Erling Tysvær setys...@gmail.com [firebird-support]
                • ... 'Daniel Miller' dmil...@amfes.com [firebird-support]
                • ... setysvar setys...@gmail.com [firebird-support]
                • ... 'Daniel Miller' dmil...@amfes.com [firebird-support]
                • ... 'Daniel Miller' dmil...@amfes.com [firebird-support]
                • ... 'Daniel Miller' dmil...@amfes.com [firebird-support]

Reply via email to