sorry for delay, but the options you gave are ruled out. actually not all the rows in the column have the values. further the total i'm looking for will result in a very complex query that i dont want to do onsidering the no. of rows are high. I just need something like a var in my ZPT which can just sum up the values if they are present. value's prsence i'm checking using tal:condition but how to add the value repeatedly in the sum var.
kindly help. On 5/20/05, Tino Wildenhain <[EMAIL PROTECTED]> wrote: > Am Freitag, den 20.05.2005, 10:36 +0100 schrieb Hugo Ramos: > > On 5/20/05, Tino Wildenhain <[EMAIL PROTECTED]> wrote: > > > Am Freitag, den 20.05.2005, 09:52 +0100 schrieb Hugo Ramos: > > > > Yellow, > > > > > > > > What DBMS are you using??? MySQL??? > > > > If so just have a sql method do this: > > > > ========== > > > > SELECT COUNT( '*' ) AS total > > > > FROM yourtable > > > > ========== > > > > > > Are you sure about the ' '? looks strange. > > > > It works both ways... With or without the ' ' ! > > > well. another reason to avoid mysql I guess ;) > > > > -- Share the vision of difference with ME _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )