It works in MS Access so I thought it would work in MySQL also.
Anyway the tables look like this:
TYPES:
TYPE_ID | TYPE_NAME
21 | Cat0
33 | Cat1
34 | Cat2
43 | Cat3
53 | Cat4
PICTURES:
PIC_TYPE | bla | bla
33 | bla | bla
33 | bla | bla
43 | bla | bla
53 | bla | bla
53 | bla | bla
33 | bla | bla
21 | bla | bla
21 | bla | bla
What I want is to get the number of pictures in PIC_TYPE in the same categori as described in TYPES. I want the TYPE_NAME also...