ALL, DISTINCT, DISTINCTROW Predicates Examples
The following examples use two tables, Customers and Orders.
Customers Table
First Name Customer ID
Bob 1
Adam 2
Beverly 3
Bob 4
Orders Table
Customer ID Order ID
1 1
1 2
2 3
2 4
2 5
4 6
4 7
SQL statement | Result | Updatable |
SELECT ALL [First Name] | Bob | No |
SELECT DISTINCT [First Name] | Bob | No |
SELECT DISTINCTROW [First Name] | Bob | Yes |