SQL DISTINCT SELECT values from multiple tables

SQL  DISTINCT SELECT eliminates duplicate records from the results, return only distinct (different) values.
DISTINCT aggregates: COUNT, AVG, MAX, etc.

so, it operates on one column and does not support multiple columns Suppose that in a table a column may contain many duplicate values

therefore sometimes you only want to list the different (distinct) values.

As a result SQL DISTINCT SELECT General syntax

used with COUNT and other aggregates
Another Example
Problem: List all Employee countries in alphabetical order.

Result: 10 rows

Country
Australia
Brazil
Canada
Kenya
….
Employee
Id
Position
City
Country

Problem: List the number of Employee countries

Finally Result:

Employee
10

Resource
SQL