Muistiinpano
Tämän sivun käyttö edellyttää valtuutusta. Voit yrittää kirjautua sisään tai vaihtaa hakemistoa.
Tämän sivun käyttö edellyttää valtuutusta. Voit yrittää vaihtaa hakemistoa.
Applies to:
SQL Server
If you want to see only unique values in a result set, you can specify that you want to exclude duplicates from the result set.
Exclude duplicate rows from the result set
Right-click the background of the Diagram pane, then choose Properties from the shortcut menu.
In the Property window, select Distinct values and set the value to Yes.
The Query and View Designer inserts the keyword
DISTINCTin front of the list of display columns in the SQL statement.Note
If you use the
DISTINCTkeyword you might not be able to modify the result set in the results pane.