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 - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -