How to count the values in a column (Enterprise Manager)
To count the values in a column
- Start the query by adding the table you want to summarize to the Diagram pane.
- Right-click anywhere in the Diagram, Grid, or SQL panes, and choose Group By. The Query Designer adds a Group By column to the grid in the Grid pane.
- Add the column that you want to count to the Grid pane.
The Query Designer automatically fills the term Group By into the Group By column of the grid.
- Change Group By in the Group By column to Count.
- Or -
To count only unique values, choose Count Distinct.
(c) 1988-98 Microsoft Corporation. All Rights Reserved.