Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sanity check
Message
De
22/03/2006 11:00:39
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01106400
Message ID:
01106669
Vues:
22
Just curious based on your last comments Naomi. We work with insurance records (our app is an agency management system) and we have to retain policy records for 7 years until after the close of all claims, then we can dispose of them. We archive old policy records, claims, and data.


>Good. I already realized, that removing Carrier is not that easy. If we have insurances pointed to the Carrier Branch that points to the bad Carrier, it means than we may have transaction pointing to this insurance. In other words, we probably should never delete Insurance records in our system. Also Carrier Branch may point to an Address and a Phone record, so if we delete Carrier Branch we would leave orphans in these tables. I would probably have to update my local data tomorrow using our network copy and I'm going to send an e-mail to my manager that I was wrong and we should not try to get rid of the bad Carriers...
>
>>I usually run SELECT with the same conditions and check result to see if it does what I want.
>>
>>>I want to delete all bad child records in Insurances for empty Carriers or XXXXXXXX Carriers. I do
>>>
>>>
>>>DELETE FROM Insurances where cCarrier_Branches_fk ;
>>>in (select cCarrier_Branches_pk from Carrier_Branches ;
>>>inner Join Carriers on Carrier_Branches.cCarriers_fk = Carriers.cCarriers_pk ;
>>>where EMPTY(cCarrier_Name) ;
>>>OR 'XXX' $ cCarrier_Name)
>>>
>>>I then checked number of deleted records and it's too big (but I didn't check it before running this code). Am I right here?
>>>
>>>Thanks.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform