Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL question
Message
De
06/08/2009 05:40:39
 
 
À
06/08/2009 05:16:39
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01416401
Message ID:
01416410
Vues:
60
>Hi Gregory,
>
>(X.X)
>
>Ich denke, jetzt brauche ich einen Schnaps.


Have two !

>Works perfect, But I need to think through this
>
>>
>>	select c3 ;
>>		from Schnaps ;
>>		group by 1 ;
>>		having ( count( distinct c1 + c2 ) > 1) ;
>>
>

Count(*) is not well documented in the help

This may help http://msdn.microsoft.com/en-us/library/ms175997.aspx
	create cursor pp ;
	(	c1 c(1) null ;
	)
	
	insert into pp values( null)
	
	insert into pp values( 'a')
	insert into pp values( 'b')
	insert into pp values( 'b')

	
	
	select count( c1 ) from pp && 3 non null
	select count( all c1 ) from pp && 3 non null
	
	select count( distinct  c1 ) from pp && 2 non null
	
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform