| SQL Distinct |
|
When using the select statement there will be times when the return result will be duplicated. So how do we go about to retrieve only unique rows? The DISTINCT keyword can be used to retrieve the result with a unique rows. SYNTAX: For example if we select all records from the Student table we would see the following 4 records: SELECT LastName from Student;
When using the DISTINCT keyword we would see the following result: Result: LastName
|