Fetching Unique Results
Learn how to obtain unique records by using the DISTINCT keyword.
We'll cover the following...
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 ...