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:
MySQL
SELECT ProductCategory FROM SalesData;
It extracts the ProductCategory names from all records. Notably, the result set displays numerous repeated ...