Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sort not working as expected
Message
De
12/11/2008 09:19:57
 
 
À
11/11/2008 15:02:56
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 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01361158
Message ID:
01361304
Vues:
13
Doris,
Select Lname, ;
			 fname, ;
			 ThID, ;
			 neSigOpt, ;
			 Padr(confirmType(neSigOpt, lPin,lFingerReg),30) as Confdata, ;
			 lPin, ;
			 lFingerReg, ;
			 isactive, ;
			 lOverride ;
from ther into cursor temp order by neSigOpt, lName, fname
Browse normal
wil give me the result:
LNAME FNAME NESIGOPT     CONFIRMTYPE
AA		Annie .NULL.	Not authorized
AA		Aaron   1	        Not authorized
XX		Xena	1		Not Authorized
AA		Andy	2		Fingerprint
ZZ		Zed	2	        Fingerprint
AA		Abel	3		PIN
BB		Betty	3		PIN
CC		Cain	3		PIN
however I realize my listing is not correct since you have a lcFilter (neSigOpt=2 or neSigOpt Less than 2) which I translate as
neSigOPt <= 2
and in your example required result you show Abel, Betty and Cain with neSigOpt 3, so please report back and I will try to correct

Regards,

Koen
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform