When dealing with data it is imperative to understand the difference between unique values and distinct values.

In the first column, we have a list of values. The values Alanis & Taylor appear more than once — there are duplicate values.

The second column contains values from the first column that only appear once. The list of values in the second column is unique — “one of a kind”.

The third column contains a list of all the values that appear in the first column but with no values repeated. It does not matter how many times the value appears in the first column; it will only appear once in the list of distinct values.

Note that the values Wendy & Billie are both unique and distinct. Tayor is a distinct value, but not unique as it appears more than once in the original list.

  • A value can be distinct and unique.
  • A value can be distinct but not unique.
  • A value that is unique will always also be distinct.
  • There can never be duplicate values in a list of distinct values or a list of unique values.

By MisterFoxOnline

Mister Fox AKA @MisterFoxOnline is an ICT, IT and CAT Teacher who has just finished training as a Young Engineers instructor. He has a passion for technology and loves to find solutions to problems using the skills he has learned in the course of his IT career.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.