Jump to content

How do I count how many times each entry in a column appears?


emjez15

Recommended Posts

MY SQL Syntax: 

 

$sql="SELECT * FROM incidents WHERE incidentcreateddate BETWEEN '$datefrom' AND '$dateto' ORDER BY incidentid ASC" or die("cannot connect server ");

 

I want this entries for the Date Range Specified Above to be :

 

Complainant---Incident Count

MarkGreen--------------3

Jha Ogbac --------------4

Peter Luciano --------- 10

Donald Guerero ------ 20

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.