C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Trainings
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
SQL Server Transact Basic to Expert - Using Count Aggregate function for Distinct Values
WhatsApp
Karthikeyan Anbarasan
14y
3.1
k
0
0
25
Blog
This blog shows how to use the Count funtion to get the count of the distinct values of a columns.
Example:
SELECT COUNT(DISTINCT Productnames) ProductCount
FROM DBO.Products
COUNT() - this is the function used to get the count.
People also reading
Membership not found