Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SPT Result Ordering
Message
 
 
À
20/07/2010 08:30:05
Steven Dyke
Safran Seats USA
Texas, États-Unis
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 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01473088
Message ID:
01473102
Vues:
27
>The following db2 SPT gives results like:
>
>861407-401
>861407-401A
>861407-401E
>861407-402B
>861407-402E
>
>Each record has a datestamp field. I need the records ordered by part number(without the suffix), datestamp
>
>
>
>sql = "Select recseq, partno, dwgrev, dwgtitle," +;
>" faistatus, engno, failocn, datstmpi From webprddt7.drawmfai" +;
>" Left Join amflib7.itemasa On amflib7.itemasa.itnbr = webprddt7.drawmfai.partno" +;
>" Where " + luField + luString + " Order By partno, datstmpi DESC"
>
>
If db2 does not allow ORDER BY LEFT(PartNo,6) then include this as a computed field in the field list and use new name in the order by.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform