Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting Bogus Records
Message
From
31/03/2010 16:50:00
 
 
To
31/03/2010 14:01:58
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:
01458231
Message ID:
01458254
Views:
74
>I have the following SPT that seems to return records that do not match. One record in particular has an inspectdt of 04/29/2008
>
>
>testconnString = "Select Distinct LEFT(vndnr,5) As rCount From amflib7.vennam" +;
>" Join webprddt7.qaismast On webprddt7.qaismast.vendorcode = amflib7.vennam.vndnr" +;
>" Join webprddt7.qaisitem On webprddt7.qaisitem.isindex = webprddt7.qaismast.recseq" +;
>" Where inspectdt >= '10/01/2009' And inspectdt <= '10/31/2009'" +;
>" And amflib7.vennam.posus <> 'S' And amflib7.vennam.entps = '1' Order By LEFT(vndnr,5)"
>
>
Don't know why it would make a difference, but does it help to use
Where inspectdt BETWEEN  '10/01/2009' AND  '10/31/2009'
Does it help to use paramaters
ldStart = DATE(2009,10,1)
ldEnd = DATE(2009,10,31)
Where inspectdt BETWEEN ?ldStart AND ?ldEnd
Previous
Reply
Map
View

Click here to load this message in the networking platform