Hi all
I want to make a good printer log. A printer log who count only the true page who was sent to the printer, but with this script when a print job is cancelled the page is counted.
I don't know how i can substract the page who has cancelled (eventID=13)
here my script
SELECT
EXTRACT_TOKEN(Strings,2,'|') As UserName,
COUNT (*) As Docs ,
SUM(TO_INT(EXTRACT_TOKEN(Strings,6,'|'))) As Pages
FROM System
Where EventID=10 AND timegenerated > '2009-06-25 00:00:00' and timegenerated < '2009-06-30 23:59:00'
GROUP BY UserName ORDER By Pages DESC
Thanks for your help