Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting most recent orders?
Message
From
11/09/2008 14:56:51
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01249462
Message ID:
01346780
Views:
5
>Use Orders.OrderDate IS NULL to make it SQL Server compatible :)
>
>>
SELECT Customer.CustomerID, Customer.CustName, Orders.OrderID, ;
>>			Orders.OrderDate, Orders.Destination ;
>>	FROM Customer ;
>>		LEFT OUTER JOIN orders ON Orders.CustomerID = Customer.CustomerID ;
>>	WHERE ISNULL(OrderDate) OR OrderDate = ( SELECT MAX(OrderDate) FROM Orders Recent WHERE Recent.CustomerID = Orders.CustomerID) 
>>
>>
>>
VFP changed it to IS NULL anyways. Unfortunately, I'd previously tried OR IS NULL, and VFP 8.1 comes back with "SQL expression is too complex" Error 1845. Using Sys(3055, 2040) still returns the error.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform