Oracle Distinct | Oracle Distinct Clause - oracle tutorial - sql tutorial
Learn oracle - oracle tutorial - Oracle distinct - oracle examples - oracle programs
What is data manipulation language (DML) ?
- Oracle DISTINCT clause is used to remove the duplicate records from the result set.
- It is only used with SELECT statement.
Oracle distinct order by clause
Syntax
Parameters:
expressions:
- It specifies the columns that you want to retrieve.
tables:
- It specifies the table from where you want to retrieve records
conditions:
- It specifies the conditions that must be fulfilled.
oracle tutorial , sql tutorial , sql , pl sql tutorial , oracle , pl sql , plsql
Oracle DISTINCT Example: (with single expression)
- Let's take a table "customers"
Customer table
Execute this query
Output:
Oracle DISTINCT Example: (with multiple expressions)
Execute this query
Output:
- This example specifies distinct name, age and salary of the customer where age is greater than or equal to 65.