Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (45k points)
closed by

A) DISTINCTIVE

B) UNIQUE

C) DISTINCT

D) DIFFERENT

closed

4 Answers

0 votes
by (11.4k points)
 
Best answer
The SQL keyword used to retrieve only unique values is option C) DISTINCT. By using the DISTINCT keyword in conjunction with the SELECT statement, you can eliminate duplicate rows from the result set. It ensures that each returned row is unique, making it a suitable choice for retrieving distinct or unique values from a table column or combination of columns.
0 votes
by (99k points)

The correct answer to the question “Which SQL keyword is used to retrieve only unique values” is option ©. DISTINCT. This keyword is used to select distinct rows. And thus, all the other options are incorrect. So, if you wish to learn SQL and master it, then you could do so, by enrolling in a good SQL training course, from a reputed e-learning institute like Intellipaat. Also, you could start off you’re training by taking a look at the following video on SQL for Beginners.

0 votes
by (13k points)

C) DISTINCT.

0 votes
by (7.8k points)
The SQL keyword used to retrieve only unique values is option C) DISTINCT.

The DISTINCT keyword is used in conjunction with the SELECT statement to eliminate duplicate rows from the result set.

It ensures that each returned row is unique by comparing the values in the specified columns.

When the DISTINCT keyword is used, only one instance of each unique value is included in the result set.

This is useful when you want to retrieve distinct or unique values from a table column or combination of columns.

Option A) DISTINCTIVE, option B) UNIQUE, and option D) DIFFERENT are not valid SQL keywords for retrieving unique values.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Apr 22, 2020 in SQL by Sudhir_1997 (55.6k points)
0 votes
1 answer
0 votes
0 answers

Browse Categories

...