Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem SQL Statement
Message
From
04/09/2003 14:34:38
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Problem SQL Statement
Miscellaneous
Thread ID:
00826160
Message ID:
00826160
Views:
52
The following SQL statement sometimes gives strange results- some of the INV fields will come back as .NULL. while others have values. The INV table does not contain .NULL. values. Is there something wrong with the syntax of the statement? I am using VFP 7. Thanks!

SELECT Whocust.wacct, sales.*,inv.miles,inv.whoseller,inv.color,inv.doors,inv.odometer, ;
inv.new_used,inv.decal,inv.county,inv.color;
FROM cardata!whocust LEFT OUTER JOIN cardata!sales;
LEFT OUTER JOIN cardata!inv ;
ON Inv.line = Sales.line ;
ON Whocust.wacct = Sales.sacct;
WHERE Whocust.wacct = myacct ;
ORDER BY sales.date, sales.make, sales.model ;
into cursor vwsinv
A problem is a problem only as long as it has a possible solution. Lacking that, it becomes a FACT!
Next
Reply
Map
View

Click here to load this message in the networking platform