Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting most recent orders?
Message
De
11/09/2008 14:56:51
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01249462
Message ID:
01346780
Vues:
7
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform