Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select and Insert SQL commands
Message
De
18/01/2000 14:21:42
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Select and Insert SQL commands
Divers
Thread ID:
00319559
Message ID:
00319559
Vues:
45
I am trying to normalize a large, hard to manage table into several smaller ones. For example the larger table contains, among other fields, a custodian field. I want to replace this with a custodian id field and link the custodian table to the large table through the custodian id. My problem is, using the select distinct SQL statement seems to work fine but I can't figure out how to insert the distinct values into an existing table. I keep overwriting the table.

Now
Large table:
custodian: fred
mike
john

Proposed
Large table:
custodian id 1
2
3

Custodian table:
Custodian id 1 Custodian fred
2 mike
3 john

thanks for any help
Here's to alcohol...the cause of ... and solution to ... all of life's problems - - Homer J. Simpson
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform