Thread Abfrage nicht normalisierter db (5 answers)
Opened by esskar at 2008-08-09 02:58

pq
 2008-08-09 03:40
#113262 #113262
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
[sql]select
username, sum( if(attribute='type' and value='reject',1,0) ) as rejected
from foo group by username having rejected = 0;[/sql]
das geht bei mir...
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Abfrage nicht normalisierter db