Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SPT Result Ordering
Message
 
 
To
20/07/2010 08:30:05
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01473088
Message ID:
01473102
Views:
28
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform