Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL doesn't work as I want it!!!!!!!
Message
De
12/12/2000 21:22:33
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00452377
Message ID:
00452688
Vues:
23
Nadya,

One more idea (for the future) would be to use the LOOKUP() function, as long as you're working in VFP.


>>Maybe try by dropping the DISTINCT and add a GROUP BY CCODE clause at the end.
>
>This solved the problem.
>
>  select nvl(State,lcState) as State, ;
>		nvl(upper(County),lcCounty) as County, ;
>		lcCity as City, ;
>		curTemp.ccode, curTemp.town, UseGrp, cYear, ;
>		VolSales, MedSale, NumSales ;
>	 	from curTemp left join Towns on curTemp.ccode=Towns.ccode;
>	 	group by 4,5,6,7 ;
>	 	into cursor curWork	
>
>Thanks to everyone.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform