Skip to content

DISTINCTROW

SELECT DISTINCTROW City
FROM Customers;
| City |
|------------|
| Berlin |
| London |
| Madrid |
| Paris |

The above SQL statement is used to select distinct (different) cities from the “Customers” table. The DISTINCTROW keyword ensures that each row is unique for the column specified.