Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
View Parameter Q for LEFT JOIN
Message
From
06/04/2006 02:23:18
 
 
To
05/04/2006 23:10:41
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 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01110849
Message ID:
01110872
Views:
18
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform