I have another dealing with this... realizing my SQL is not what I thought
I have a datetime field: start
1/11/2005 11:52
1/11/2005 14:45
total seconds: SEC
10
20
Agent: agent
Ben
I need to create a stored procedure based on a single date that will return to me the sum of the calls on a specific day and also the sum of the calls in a specific month.
I am having issues
select sum(Sec), Count(start) from calls where agent = 'Ben' and date
how do I do a like for the date and for the month to date based on a date like '1/11/05'?
Billy Ballard
For in the past, Lies the future.
I have a datetime field: start
1/11/2005 11:52
1/11/2005 14:45
total seconds: SEC
10
20
Agent: agent
Ben
I need to create a stored procedure based on a single date that will return to me the sum of the calls on a specific day and also the sum of the calls in a specific month.
I am having issues
select sum(Sec), Count(start) from calls where agent = 'Ben' and date
how do I do a like for the date and for the month to date based on a date like '1/11/05'?
Billy Ballard
For in the past, Lies the future.