SELECT idMaxNet,COUNT(tagId) as num FROM "itt_data_bridgenuzoo" WHERE date >= CURRENT_DATE - INTERVAL '7' DAY AND idMaxNet!=0 AND (idMaxNet=128 OR idMaxNet=129 OR idMaxNet=130 OR idMaxNet=131) GROUP BY idMaxNet
and I have this result:
|idMaxNet |num |
129 25
131 29
I would put this data in a pie chart, with percentage. So: 100% is 25+29 = 54, than "129" is 46.3%, while "131" is 53.7.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.