Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create a Better SQL Statement
Message
De
02/09/2015 11:48:04
Steven Dyke
Safran Seats USA
Texas, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Create a Better SQL Statement
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01624174
Message ID:
01624174
Vues:
75
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform