Hi,
Not sure what you are trying to achieve here, but a simple example based on a file called example.csv which looks as follows;
String,Integer,Result
a,1,3
b,2,4
c,3,5
a,1,7
Would return these results when given this query;
logparser "select String, Integer, sum(Result) as Sum from example.csv group by String, Integer" -i:csv
String Integer Sum
------ ------- ---
a 1 10
b 2 4
c 3 5
And would these results when given this query;
logparser "select String, Integer, sum(Result) as Sum from example.csv
group by String, Integer having String='a' and Integer=1" -i:csv
String Integer Sum
------ ------- ---
a 1 10
You could then exend the HAVING clause for specifics and the CASE statement to take care of other logic. Hope this helps.
Good luck.
Cheers, Dave