Thema: Delphi Problem mit Query

Einzelnen Beitrag anzeigen

MaxMara

Registriert seit: 27. Apr 2004
Ort: Wien
77 Beiträge
 
Delphi 2007 Enterprise
 
#34

Re: Problem mit Query

  Alt 30. Apr 2008, 13:54
Danke, hab es jetzt (mit Hilfe eines Freundes) so gelöst:
SQL-Code:
SELECT t1.voting_text, count(*) AS `ergebnis`
FROM `data` t1
LEFT JOIN `data` t2
ON t1.voting_ip = t2.voting_ip
AND t1.voting_date < t2.voting_date
WHERE t2.voting_id IS NULL
GROUP BY t1.voting_text;
Danke an alle Mitdenker
  Mit Zitat antworten Zitat