📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!

  • google app store apple app store
  • ✖

      Question

      In database management, which SQL command is used to

      retrieve only unique (non-duplicate) values from a column?
      A UNIQUE Correct Answer Incorrect Answer
      B NODUPLICATE Correct Answer Incorrect Answer
      C FILTER Correct Answer Incorrect Answer
      D EXCLUDE Correct Answer Incorrect Answer
      E DISTINCT Correct Answer Incorrect Answer

      Solution

      The DISTINCT keyword in SQL eliminates duplicate rows from query results. Syntax: SELECT DISTINCT column_name FROM table_name;  DISTINCT can be applied to multiple columns. For example: SELECT DISTINCT BranchID, ProductType FROM Accounts; returns unique combinations of branch and product. 

      Practice Next

      Relevant for Exams:

      ask-question