terawebwriter
Programmer
I have a database that lists Help Desk tickets. The table consists of Technician Name, Week #, Ticket Count, and Site Name. What I want to do is to list the total # of tickets completed, per technician, per week.
Ex:
Name Week1 Week2 Week3
John Doe 20 Tickets 25 Tickets 15 Tickets
John Doe1 10 Tickets 4 Tickets 22 Tickets
John Doe2 40 Tickets 10 Tickets 3 Tickets
I included what I thought it would work below, but I am either missing something or did not complete the query right. I dont care much about the site, that's for later use. Any help I would appreciate it.
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="../../Connections/Reports.asp" -->
<!-- #include file="../../Connections/adovbs.inc" -->
<%
Set RS = Server.CreateObject("ADODB.Recordset"
SqlString = "SELECT TicketCount, Week, Site, Technician "
SqlString = SqlString & " FROM TicketC"
Set RS = objConn.Execute ( SqlString )
%>
<%
while not RS.EOF
If RS("Week"
= Week1 AND
If RS("Technician"
= John Doe then
Response.Write RS("TicketCount"
RS.MoveNext
WEND
%>
What am I doing wrong? What am I missing? Thankx for your help.
Ex:
Name Week1 Week2 Week3
John Doe 20 Tickets 25 Tickets 15 Tickets
John Doe1 10 Tickets 4 Tickets 22 Tickets
John Doe2 40 Tickets 10 Tickets 3 Tickets
I included what I thought it would work below, but I am either missing something or did not complete the query right. I dont care much about the site, that's for later use. Any help I would appreciate it.
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="../../Connections/Reports.asp" -->
<!-- #include file="../../Connections/adovbs.inc" -->
<%
Set RS = Server.CreateObject("ADODB.Recordset"
SqlString = "SELECT TicketCount, Week, Site, Technician "
SqlString = SqlString & " FROM TicketC"
Set RS = objConn.Execute ( SqlString )
%>
<%
while not RS.EOF
If RS("Week"
If RS("Technician"
Response.Write RS("TicketCount"
RS.MoveNext
WEND
%>
What am I doing wrong? What am I missing? Thankx for your help.