<question>
         <text>Hallo, kann mir jemand sagen, was daran falsch ist ?</text>
         <description>
                 <try>
                         <sql>
select mobile_number,
        count(correct) anzahl
from answers
where correct = '1' and
       anzahl >= 5 and
       DATE_FORMAT(date, '%Y%m%d%H%i') >= DATE_FORMAT(DATE_SUB(NOW(), 
INTERVAL 9 DAY), '%Y%m%d0700') AND
       DATE_FORMAT(date, '%Y%m%d%H%i') < DATE_FORMAT(DATE_SUB(NOW(), 
INTERVAL 4 DAY), '%Y%m%d0700')
group by mobile_number
                         </sql>
                         <error>unknown column anzahl in where 
clause....</error>
                 </try>
                 <!-- anders: -->
                 <try>
                         <sql>
select mobile_number,
        count(correct)
from answers
where correct = '1' and
       count(correct) >= 5 and
       DATE_FORMAT(date, '%Y%m%d%H%i') >= DATE_FORMAT(DATE_SUB(NOW(), 
INTERVAL 9 DAY), '%Y%m%d0700') AND
       DATE_FORMAT(date, '%Y%m%d%H%i') < DATE_FORMAT(DATE_SUB(NOW(), 
INTERVAL 4 DAY), '%Y%m%d0700')
group by mobile_number
                         </sql>
                         <error>Fehlermeldung: Invalid use of group 
function....</error>
                 </try>
                 <!-- selbst bei diesem hier kommt die gleiche 
fehlermeldung: -->
                 <try>
                         <sql>
select mobile_number,
        count(correct)
from answers
where correct = '1' and
       count(correct) >= 5
group by mobile_number
                         </sql>
                         <error>Fehlermeldung: Invalid use of group 
function....</error>
                 </try>
         </description>
</question>

<!--
Sorry wegen den tags, aber als ich versucht habe die nachricht etwas 
�bersichtlicher zu gestalten, hat mein XML geplagters hirn die kontrolle 
�bernommen..
Allerdings bin ich mir der kommentare nicht sicher :)
auch fehlen noch ein paar header sowie die dtd....

DAS PROBELM ist aber ernst gemeint!
-->


-- 

Florian Schmidt
mailto:[EMAIL PROTECTED]
http://www.f-24.com


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to