This is the syntax that is new in VFP 9.
Select Id, (select sum(col1) from table group by Id) as SummedValue from
Table

Tracy

-----Original Message-----
From: Stephen Russell
Sent: Monday, July 20, 2009 12:00 PM

On Mon, Jul 20, 2009 at 10:38 AM, Tracy Pearson<[email protected]>
wrote:
> It's been available since at least 6. But the Subject says VFP 9 anyway.
---------------

You could do
Select Id, col1, col2 from myTable
where col2 in ( Select ID from myOtherTable where bal > 250)

in vfp6?  I didn't think so.  I thought that was the one of the high points
for 9

--
Stephen Russell
Sr. Production Systems Programmer
SQL Server DBA
Web and Winform Development
Independent Contractor
Memphis TN

901.246-0159



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/001f01ca0956$2cfa0260$86ee07...@com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to