Introducing the APPROX_COUNT_DISTINCT SQL Function

Introducing the APPROX_COUNT_DISTINCT SQL Function

The APPROX_COUNT_DISTINCT?SQL Function became available with SQL Server 2019 Community Technical Preview (CTP) 2.0.

APPROX_COUNT_DISTINCT?returns the approximate number of unique non-null values in a group.

This example returns the approximate number of different student keys from the Students table:

SELECT APPROX_COUNT_DISTINCT(StudentKey) AS [Example1]FROM Students
Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across