Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble getting result from join query
Message
From
08/06/2012 12:06:29
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01545667
Message ID:
01545679
Views:
43
>
>The results I'm hoping for is
>
>Cnt_lname        Sum_workhour
>2                      18
>
>
>Nick


how about
SELECT count(person.lname) ,;
(SELECT sum(workhour) FROM pinfo) as SUMWORK;
FROM Person  ;
WHERE person.personid in (1,2)
Peter Cortiel
Previous
Reply
Map
View

Click here to load this message in the networking platform