What Is Difference Between Unique And Distinct?
What Is Difference Between Unique And Distinct? Unique creates a constraint that all values to be inserted must be different from the others. Distinct results in the removal of the duplicate rows while retrieving data. What’s the difference between unique and distinct in SQL? The UNIQUE keyword in SQL plays the role of a database