AdBlock Detected!
Our website is made possible by displaying ads to our visitors. Please supporting us by whitelisting our website.
SQL SELECT UNIQUE |
SQL > SQL Commands >
Select Unique
The SELECT UNIQUE construct is an Oracle-only SQL statement. It is equivalent to SELECT DISTINCT. SyntaxThe syntax for SELECT UNIQUE is as follows: SELECT UNIQUE "column_name"
FROM "table_name"; ExampleWe use the following table for our example. Table Store_Information
To select all distinct stores in Table Store_Information in Oracle, we key in, SELECT UNIQUE Sales FROM Store_Information;
Result:
ExercisesFor these exercises, assume we have a table called Region_Sales with the following data: Table Region_Sales
1. (True or False) The following two statements are equivalent in MySQL:
2. Which of the following statements are valid in Oracle?
3. What is the output for the following statement?
|
Our website is made possible by displaying ads to our visitors. Please supporting us by whitelisting our website.