Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Insert with 2 primary keys in xref table
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01265745
Message ID:
01266027
Vues:
12
Any time.

>once again, many thanks for taking the time to give such detailed help.
>>
>>You don't have to concatenate fields. The second one should be faster.
>>
>>select k_prempl, k_prdedmst
>>	from c_PenDetail pd
>>	WHERE NOT EXISTS ( SELECT * FROM prdedemp
>>		WHERE k_prdedmst = pd.k_prdedmst AND k_prempl = pd.k_prempl)
>>
>>* or
>>select pd.k_prempl, pd.k_prdedmst
>>	from c_PenDetail pd
>>	LEFT JOIN prdedemp pr ON pr.k_prdedmst = pd.k_prdedmst AND pr.k_prempl = pd.k_prempl
>>	WHERE pr.k_prdedmst IS NULL
>>
>>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform