COUNT operator MyEclipse IDE > Off Topic This topic has 3 replies, 3 voices, and was last updated 18 years, 7 months ago by Gabriel Khoa Bui. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts April 6, 2006 at 8:00 pm #249963 Reply Gabriel Khoa BuiMember The config of my table as below: | Id | Device| ———————————— | SR200604001 | Server | SR200604002 | Server | RO200604001 | Router | RO00604002 | Router | PJ200604001 | Projector Using ‘COUNT’ operator, how to get total of rows that is ordered by every device? I take an example, Server | 2 Router | 2 Projector | 1 Thanx! April 7, 2006 at 12:14 am #249969 Reply Riyad KallaMember Moving to OT > Soft Dev April 7, 2006 at 2:41 am #249978 Reply Brian FernandesModerator select device, count(id) from tableName group by Device; I’m not 100% sure that would work, but give it a shot. Brian. April 7, 2006 at 7:38 am #249989 Reply Gabriel Khoa BuiMember It works! Thank you very much! Author Posts Viewing 4 posts - 1 through 4 (of 4 total) Reply To: COUNT operator You must be logged in to post in the forum log in