Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select problem
Message
De
16/05/2007 18:11:50
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01226113
Message ID:
01226203
Vues:
19
>>Given the following code sequence
>>
>>lnYear = 2005
>>lcRawData = fileloc + 'surveys\RawData' + transform(lnYear)
>>lcCompanyInfo = fileloc + 'surveys\companyinfo'
>>
>>select * ;
>>	from (lcRawData) rd, ;
>>	(lcCompanyInfo) ci ;
>>	where rd.permid = ci.permid and ci.yearproduced = lnYear
>>
>>
>>The RawData table contains 98274 records. If the WHERE clause of the select creates an inner join (does it not?) how can the result set contain 98511 records?
>
>Check SET ANSI settings and SET DELETED. Are the ID fields of character type or Integer?
>
>Also do you have multiple CompanyInfo records for the same PermID?

Both tables were packed so set deleted wasn't in play. But I found some dupliacte records in companyinfo per Hilmar's suggestion.

Thanks
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform