Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is wrong with this query?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00587152
Message ID:
00587214
Views:
36
>Right.
>
>>I also think it needs to be grouped:
>>
>>>Try
SELECT Person.lname, Person.totassignhrs, SUM(Pinfo.totcomphrs),;
>>>  Person.failcmpldate;
>>> FROM  workprog!person INNER JOIN workprog!pinfo ;
>>>   ON  Person.personid = Pinfo.personid;
>>> WHERE NOT (Person.compstatus == "COMPLETE");
>>   <b>GROUP BY Person.personID ;</b>
>>>  <b>HAVING</b> SUM(Pinfo.totcomphrs) = Person.totassignhrs
>>>
>>>


Thank You, that worked and helped me out a lot.


Nick Patel
Previous
Reply
Map
View

Click here to load this message in the networking platform