For Programmers: Free Programming Magazines  


Home > Archive > PHP SQL > April 2004 > help with SQL statement









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author help with SQL statement
boyzdynasty

2004-04-25, 1:31 am

:(

Sorry...i don't have much knowledge of SQL and I hope someone can
help me.

here is an visual of the print out

Subject Completes Calls Hours Spent


Subject is simple to get...

But I'm having trouble with the last 3 columns.

Objective:
------------

Completes has the condition of the following: Sum up the number of
completes for X Subject


Calls has the condition of the following: Sum up the number of calls
for X Subject


Hours Spent: The value must be derive from the start and end time of
each call pertaining to X Subject. And sum up the total hours.






----------------------------------------
The post originated from PHP Freaks:
----------------------------------------
http://www.phpfreaks.com
http://www.phpfreaks.com/forums


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com