|
That's because you're using a column operation (count) without telling SQL how to group the columns (count of what?). "Distinct" is great if you just want to get individual values (it's fast), but it doesn't support "count" or "sum" or any of the other column functions (that's why it's fast). As Eric already said, "group by" is what you want Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx> on Monday, October 17, 2005 at 4:43 PM -0500 wrote: >I'm getting a "Column or expression in SELECT list not valid" error. Mike Naughton Senior Programmer/Analyst Judd Wire, Inc. 124 Turnpike Road Turners Falls, MA 01376 413-863-4357 x444 mnaughton@xxxxxxxxxxxx
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.