I have a table, a simple table, only has 3 fields.
ID Type Date
Example of Data (recordset showing 3 of 300)
154 | page | 2010-02-08
154 | link | 2010-02-08
154 | form | 2010-02-08
Id: just an id for a client
Type: can only be 3 things that are already populated ('form','page','link')
Date: just the date it was created
There are multiple entries for each ID.
I want to create a stored procedure or query that gives me the following output
Example of Desired OutPut / Count
ID | Link | Form | Page
154 | 75 | 40 | 100
I just want a count of each type so I don't have to make 3 separate SQL calls to get the count of each. Any help would be greatly appreciated, this will need to go to a Stored Procedure, and all I want to base this on is the ID.
Thanks in advance