Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
ConradK
Posting Yak Master
140 Posts |
Posted - 2010-06-11 : 14:23:12
|
| Okay, when I run this codeselectcount(agg.description)from(selectDescriptionFields.Descriptionfrom DescriptionFields)agg6 secondswhen I run this codeselectcount(agg.description)from(selectdistinctDescriptionFields.Descriptionfrom DescriptionFields)aggmany minutes and counting.I need the results of the ladder, not the former, but need to be able to do this oftehen and at will. Any ideas as to how to acheive the same results with less time? |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
ConradK
Posting Yak Master
140 Posts |
Posted - 2010-06-11 : 14:48:51
|
| will that significantly improve performance? |
 |
|
|
ConradK
Posting Yak Master
140 Posts |
Posted - 2010-06-11 : 14:51:52
|
| I want to know how many unique descriptions are in this table |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|
|