Counting number of occurences in SQL

Quantarama

New member
Local time
Today, 14:21
Joined
Nov 18, 2010
Messages
5
Hi all,

I was wondering if there was any way to count the number of occurences of any values in SQL ?
Example : In a customer database, counting the number of times the same d.o.b occurs and returning it in a new collumn.
This is working :
SELECT
[DOB]
,COUNT([DOB]) AS D

However I want it to also work, when I select all the other fields in the table

Many Thanks
 
Last edited:

Users who are viewing this thread

Back
Top Bottom