Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
View Parameter Q for LEFT JOIN
Message
De
06/04/2006 02:23:18
 
 
À
05/04/2006 23:10:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01110849
Message ID:
01110872
Vues:
16
>Hi all,
>
>I have the following:
>
>SELECT a.*,b.company FROM a LEFT JOIN b on a.fld1=b.fld1 ;
> WHERE company like ?findcompany
>
>I would like to include records with company=null if findcompany is empty, how can i achieve it?
>
>Thanks in advance...
SELECT a.*,b.company FROM a LEFT JOIN b on a.fld1=b.fld1 ;
   WHERE company like ?findcompany OR 1=?IIF(EMPTY(findcompany),1,0) AND company is null
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform