Hi,
i've write a query:
SELECT id, Surname, Name
FROM Statistic AS anag
WHERE ((SELECT SUM(Price) AS SumPrez
FROM Purchasing AS Rate
WHERE (Balance = 0) AND (idanagrafica =
anag.id)) -
(SELECT SUM(Installment) AS SumRate
FROM Collections AS Incas
WHERE (Balance = 0) AND (idanagrafica =
anag.id)) < 100)
No have problem with SQL 2005 but if i try to execute on mobile device with
SQL Ce 3.1 (Compact Edition) i've error
Can help me?
Thanks
Raffaele
Matt Lacey - 16 Nov 2007 14:54 GMT
> Hi,
>
[quoted text clipped - 18 lines]
> Thanks
> Raffaele
what is the error?
Erik Ejlskov - 16 Nov 2007 16:46 GMT
Subqueries are not supported by SQL Compact 3.1

Signature
Erik Ejlskov Jensen
- see my SQL Compact blog at
http://erikej.blogspot.com
> Hi,
>
[quoted text clipped - 19 lines]
> Thanks
> Raffaele