× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



-----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.

Honestly, this makes no sense to me. Instead of propagating the original file, you're going to
propagate a history file???

How would that be useful? Unless the users are solely interested in the history, they'd kill
themselves trying to find the "current" information out of the history file that corresponds to the
current data in the original file. Plus, are you going to seed it with entries for all records so
that they can find a record if the data doesn't get changed anytime soon?

You could try using triggers or the journaled entries for the file to make a "shadow copy" of the file
by basically using RRN as the unique key for the file. But there's pitfalls with that; the reuse of
deleted records or a RGZPFM on the original will cause you problems among other things....

There's a very good reason datapropagator wants a unique key....

Charles



This e-mail transmission contains information that is intended to be confidential and privileged. If you receive this e-mail and you are not a named addressee you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so is prohibited and may be unlawful. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please delete and otherwise erase it and any attachments from your computer system. Your assistance in correcting this error is appreciated.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.