Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Help
Message
 
 
To
01/08/2007 10:40:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01245144
Message ID:
01245159
Views:
39
Yes, I already corrected it in another message to you.

>Many thanks for your help. However to get all the records matching my criteria, I removed the table reference from where clause of forename.
>SELECT * FROM ( ;
>	SELECT Id, Forename, Compname, SUM(OrdTotal) TotOrd ;
>		FROM clients ;
>			LEFT JOIN Prsndetl ON Clients.Id = PrsnDetl.ClientId ;
>			LEFT JOIN Orders ON Clients.Id = Orders.ClientId ;
>		GROUP BY Clients.Id, Clients.Compname, PrsnDetl.Forename ) dt1;
>  WHERE '01' $ CompName ;
>  OR 'hr' $ LOWER(Forename) ;
>  OR TotOrd = 300
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform