|
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-
bounces@xxxxxxxxxxxx] On Behalf Of Dave Odom
Sent: Thursday, May 29, 2008 5:27 PM
To: midrange-l@xxxxxxxxxxxx
Subject: RE: Best way to make a table of non-unique rows, unique?
My thinking was to put triggers on the vendor's tables I need. These
triggers would be looking for INSERTs, UPDATEs or DELETEs. When those
were detected, I would copy the row to a similar table with all the same
columns but with the addition of the columns you mention and/or a
datetimestamp column and an "operation" column where I would insert an
"I", "U" or "D" for the operation that caused the insert in the "similar"
table. Then I could put a unique index on the columns you mentioned
and/or my datetimestamp and operation column which would make each row
unique. I realize this would, in essence, create rows of "history" but
I think this is a faster solution than complex programming and if the
users know about the data when they create their queries they can take
that into account and either disregard whatever rows they don't need or
take advantage of the history if that better suits them.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.