...

/

Fetching Unique Results

Fetching Unique Results

Learn how to obtain unique records by using the DISTINCT keyword.

The DISTINCT keyword

Let’s write a query to retrieve ProductCategories. Run the following query to show results:

Press + to interact
SELECT ProductCategory FROM SalesData;

It extracts the ProductCategory names from all records. Notably, the result ...