Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SPT Syntax
Message
 
To
16/07/2010 14:24:23
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01472729
Message ID:
01472731
Views:
52
Hi Steven,

Try this...
mysql = "Select recseq, partno, dwgrev, dwgtitle, faistatus, engno From webprddt7.drawmfai" +;
" Left Join amflib7.itemasa On amflib7.itemasa.itnbr LIKE CONCAT(webprddt7.drawmfai.partno,'%')" +;
" Where rectype = ?recType  And failocn = ?location" + isFilter
MartinaJ

>I always have a SPT issue.
>
>In the following SQL when the webprddt7.drawmfai partnumber matches the amflib7.itemasa.itnbr exactly it works great. But sometimes the part number in the webprddt7.drawmfai is without any suffixes(base number such as 899999-001) while the itnbr in the amflib7.itemasa has 899999-001A etc. I would still like to return the amflib7.itemasa.engno when this semi match exists.
>
>Thanks for all the help.
>
>
>
>mysql = "Select recseq, partno, dwgrev, dwgtitle, faistatus, engno From webprddt7.drawmfai" +;
>" Left Join amflib7.itemasa On amflib7.itemasa.itnbr = webprddt7.drawmfai.partno" +;
>" Where rectype = " + recType + " And failocn = " + location + isFilter
>					
>
>
>
"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