Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Syntax
Message
From
16/06/2005 10:36:48
James Beerbower
James Beerbower Enterprises
Hochheim Am Main, Germany
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01023915
Message ID:
01023973
Views:
9
Hi,

It looks like you might have an join problem to me:

SELECT Resident.iid AS 'iresId',;
Repondant.iid AS 'irepid';
FROM amline!Resident ;
LEFT OUTER JOIN amline!Repondant ;
ON Resident.iid = Repondant.iresidentid;
WHERE Repondant.lcopyfact ;
ORDER BY Resident.iid

you have this as a left outer join-- meaning that we can have as result with non null resident.iid but repondant.id is NULL. This means that repondant.lcopyfact is also null. Meaning that your left join is really identical to a simple inner join!

Now I don't know if that is specifically your problem but it is a problem with the query.

Hope that helps,
Jamie



>HI ALL,
>
>I have
>
>resident.dbf
>IID I
>
>repondant.dbf
>iid I
>iresidentid I
>lcopy L
>
>
>I want ALL residents AND all repondants if lcopy = .T.
>
>This code do'nt function...
>
>
>SELECT Resident.iid AS 'iresId',;
> Repondant.iid AS 'irepid';
> FROM amline!Resident ;
>    LEFT OUTER JOIN amline!Repondant ;
>   ON  Resident.iid = Repondant.iresidentid;
> WHERE  Repondant.lcopyfact = ( .T. );
> ORDER BY Resident.iid
>
>
>
>thank in advance
>
>bernhart
James Beerbower
James Beerbower Enterprises
Frankfurt, Deutschland
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform