Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select problem
Message
De
17/05/2007 19:43:17
 
 
À
16/05/2007 14:23:49
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:
01226570
Vues:
22
There is a 1 to many relationship from companyinfo to rawdata. There were two records in companyinfo that were not unique thereby creating the problem. When the 2 false records were eliminated, the problem was solved.

Thanks for your interest.

>How many does lcCompanyInfo that matches RawData?
>
>>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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform