Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RIGHT OUTER JOIN not working
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01278885
Message ID:
01279186
Views:
13
Ther's no good reason to use RIGHT join in the first place.

>
>Can anyone tell me why the following RIGHT OUTER JOIN statement returns the same records as an INNER JOIN?
>
>SELECT v.custid, l.custid, v.upsino, l.upsino, v.datinp, l.puldat, v.optemp, v.pktemp, l.ift, l.color;
>FROM visual v ;
>RIGHT OUTER JOIN liquid l ;
>ON v.custid + v.upsino + DTOS(v.datinp) = l.custid + l.upsino + DTOS(l.puldat) ;
>WHERE v.custid = "AL100239" AND v.upsino = "0000001";
>ORDER BY v.upsino, v.datinp
>
>I have records in the liquid table that have a UPSINO = "0000001" with a puldat that has NO MATCHING datinp record in the VISUAL table. Why do these records not show up in the results with the non matching fields set to NULL.
>
>I am trying extract all records from the LIQUID table that match my lookup criteria whether on not they have a matching record in VISUAL.
>
>
>Thank you.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform