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:
01473092
Views:
34
Hi Steven,

- db2 doesn't support using functions in ORDER BY?
- partno is datatype number or char/varchar?


MartinaJ

>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"
>
>
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform