[Zope] Funny problem with DTML, please help!

Ty Sarna tsarna@endicor.com
20 Apr 1999 17:40:06 GMT


In article <m3hfqbvrbg.fsf@ns1.aster.net>,  <pan@aster.net> wrote:
> Hi guys,
> 
> I hope someone can help me with this one, because it's almost driving
> me crazy :-)

This isn't really an answer to your question, but why not let the SQL
server do the counting for you?

Something like 

	SELECT COUNT(*) AS yes_num FROM votes WHERE answer = 'Y'

Will get you the number without having to examine each record in DTML.