Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create a Better SQL Statement
Message
From
02/09/2015 11:56:50
 
 
To
02/09/2015 11:48:04
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01624174
Message ID:
01624175
Views:
66
Are you using DB2?

>I would like to have some help to create a more streamlined SQL statement.
>
>My current statement:
>
>
>
>String where = " Where pinbr Like " + lookupString + " And posstr(pinbr, 'DEV') < 1 And posstr(pinbr, 'DYN') < 1 And posstr(pinbr, 'ST') < 1 And posstr(pinbr, 'CDR') < 1";
>	
>"Select pinbr, cinbr, ITDSC, qtypr From amflib1.pstdtl" +;
>" Join " amflib1.itment" +;
>" On amflib1.pstdtl.cinbr = amflib1.itment.itnbr" +;
>where
>
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform