How to count distinct of record in sql server query? -


i'm beginner in sql server , query,i want write query show me result:

record count=3 record b count=100 

for purpose write query:

select distinct *from ewsd1 


query show me result:

record record b 


want show example record field detail , how many repeat in of table?thanks.

select  [name], -- select fields want see         [address],         [postnumber],         count(*) -- include aggregate    table_name group [name], -- group fields aren't inlcuded in aggregate..          [address],         [postnumber] 

Comments

Popular posts from this blog

php - Extract Text from HTTP referer -

Receive udp packets in android gstreamer -

Reversible shuffling a int array in java -