paddy
29-04-2002, 19:38
Hi Leutz !
Ich hab mal wieder ne Frage :
Folgendermaßen schaut meine Table aus :
id | name | nmb
---------------------------------
1 | xyz1 | 1
2 | xyz1 | 6
3 | xyz1 | 3
4 | xyz1 | 2
5 | xyz1 | 3
6 | xyz1 | 4
...........
Wie muss ich jetzt vorgehen wenn ich abfragen will
welche zahlen und wieviele davon sich in in spalte nbm befinden .
-> so solls dann aussehen :
1x "1"
1x "6"
2x "3"
1x "2"
1x "4"
Die zahlen in Spalte nmb ändern sich -> also geht eine "Starre" abfrage mit Where nmb = 'x' nicht .
thanx :)
Ich hab mal wieder ne Frage :
Folgendermaßen schaut meine Table aus :
id | name | nmb
---------------------------------
1 | xyz1 | 1
2 | xyz1 | 6
3 | xyz1 | 3
4 | xyz1 | 2
5 | xyz1 | 3
6 | xyz1 | 4
...........
Wie muss ich jetzt vorgehen wenn ich abfragen will
welche zahlen und wieviele davon sich in in spalte nbm befinden .
-> so solls dann aussehen :
1x "1"
1x "6"
2x "3"
1x "2"
1x "4"
Die zahlen in Spalte nmb ändern sich -> also geht eine "Starre" abfrage mit Where nmb = 'x' nicht .
thanx :)
