Thema: Delphi Problem mit Query

Einzelnen Beitrag anzeigen

mkinzler
(Moderator)

Registriert seit: 9. Dez 2005
Ort: Heilbronn
39.851 Beiträge
 
Delphi 11 Alexandria
 
#31

Re: Problem mit Query

  Alt 22. Apr 2008, 14:01
SQL-Code:
SELECT a.voting_text, count(a.ID) AS ergebnis FROM
(select c.voting_text, MAX(b.voting_id) as ID from data b join data c on c.voting_id = b.voting_id group by b.voting_ip) a
group by a.voting_text;
Markus Kinzler
  Mit Zitat antworten Zitat