![]() | |
#31
| |||
| |||
|
|
How do I, in one query, get the count of the number of distinct values for a particular column? For example: clcode other ------ ----- ABC 12 ABC 34 DEF 17 DEF 21 DEF 58 GHI 29 The result that I want is the number of different clcode values in the above: 3. I thought I had done this before with but one query, but can not figure it out now. |
#32
| |||
| |||
|
|
How do I, in one query, get the count of the number of distinct values for a particular column? For example: clcode other ------ ----- ABC 12 ABC 34 DEF 17 DEF 21 DEF 58 GHI 29 The result that I want is the number of different clcode values in the above: 3. I thought I had done this before with but one query, but can not figure it out now. |
#33
| |||
| |||
|
|
How do I, in one query, get the count of the number of distinct values for a particular column? For example: clcode other ------ ----- ABC 12 ABC 34 DEF 17 DEF 21 DEF 58 GHI 29 The result that I want is the number of different clcode values in the above: 3. I thought I had done this before with but one query, but can not figure it out now. |
#34
| |||
| |||
|
|
How do I, in one query, get the count of the number of distinct values for a particular column? For example: clcode other ------ ----- ABC 12 ABC 34 DEF 17 DEF 21 DEF 58 GHI 29 The result that I want is the number of different clcode values in the above: 3. I thought I had done this before with but one query, but can not figure it out now. |
#35
| |||
| |||
|
|
How do I, in one query, get the count of the number of distinct values for a particular column? For example: clcode other ------ ----- ABC 12 ABC 34 DEF 17 DEF 21 DEF 58 GHI 29 The result that I want is the number of different clcode values in the above: 3. I thought I had done this before with but one query, but can not figure it out now. |
#36
| |||
| |||
|
|
How do I, in one query, get the count of the number of distinct values for a particular column? For example: clcode other ------ ----- ABC 12 ABC 34 DEF 17 DEF 21 DEF 58 GHI 29 The result that I want is the number of different clcode values in the above: 3. I thought I had done this before with but one query, but can not figure it out now. |
#37
| |||
| |||
|
|
How do I, in one query, get the count of the number of distinct values for a particular column? For example: clcode other ------ ----- ABC 12 ABC 34 DEF 17 DEF 21 DEF 58 GHI 29 The result that I want is the number of different clcode values in the above: 3. I thought I had done this before with but one query, but can not figure it out now. |
#38
| |||
| |||
|
|
"Dan Freeman" <spam (AT) microsoft (DOT) com> wrote: Select clcode Group by clcode ?_tally Blindsided again. I use _tally quite often, and I did not even think of doing this. Thank you. |
#39
| |||
| |||
|
|
"Dan Freeman" <spam (AT) microsoft (DOT) com> wrote: Select clcode Group by clcode ?_tally Blindsided again. I use _tally quite often, and I did not even think of doing this. Thank you. |
#40
| |||
| |||
|
|
"Dan Freeman" <spam (AT) microsoft (DOT) com> wrote: Select clcode Group by clcode ?_tally Blindsided again. I use _tally quite often, and I did not even think of doing this. Thank you. |
![]() |
| Thread Tools | |
| Display Modes | |
| |