Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
SQL Server Transact Basic to Expert - Using Average function for Distinct Values
WhatsApp
Karthikeyan Anbarasan
13y
3
k
0
0
25
Blog
This blog shows how to do an average of group of distinct values using the Average function in SQL Server
Example:
SELECT AVG(DISTINCT prdCost) AvgDistinctProductCost
FROM DBO.ProductCostHistory
AVG() - this is the function used to do the average.
SQL Server Transact Basic to Expert - Using Average function for Distinct Values
Up Next
SQL Server Transact Basic to Expert - Using String Function UNICODE to get Integer Values
Ebook Download
View all
Basics of SQL Server
Read by 1.5k people
Download Now!
Learn
View all
Membership not found