ChrisMacPherson
Programmer
Hello all,
I would like to select these values from my two tables:
project title
no of bugs for project
no of open bugs for project (status = 1)
the tables I have look like this (lots left out):
projects
--------------------------------
pId
title
--------------------------------
bugs
--------------------------------
bId
status (binary)
--------------------------------
I know how to select all of the bugs for each project, but I dont know how to count the number of times a certain value appears in one of the columns.
Any pointers would be appreciated.
Chris MacPherson
I would like to select these values from my two tables:
project title
no of bugs for project
no of open bugs for project (status = 1)
the tables I have look like this (lots left out):
projects
--------------------------------
pId
title
--------------------------------
bugs
--------------------------------
bId
status (binary)
--------------------------------
I know how to select all of the bugs for each project, but I dont know how to count the number of times a certain value appears in one of the columns.
Any pointers would be appreciated.
Chris MacPherson