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
Post a Comment