G
Guest
Hello,
I'm not very savvy with SQL and I'm having a lot of trouble with this one.
I have a database with work orders for several machines. A work order may be
of several categories, one of which is "Safety".
The field name = [WOType] and is a text field.
For each machine I need to count the number of open work orders of type =
"Safety" and the total number of orders that are NOT = "Safety". I can't do
it without getting type mismatch errors.
I want the output to be like this:
Machine Safety WO Other WO
123 6 14
234 4 18
345 2 5
456 9 20
......
There are only seven machines so a form or datasheet output would be fine.
Please help!
I'm not very savvy with SQL and I'm having a lot of trouble with this one.
I have a database with work orders for several machines. A work order may be
of several categories, one of which is "Safety".
The field name = [WOType] and is a text field.
For each machine I need to count the number of open work orders of type =
"Safety" and the total number of orders that are NOT = "Safety". I can't do
it without getting type mismatch errors.
I want the output to be like this:
Machine Safety WO Other WO
123 6 14
234 4 18
345 2 5
456 9 20
......
There are only seven machines so a form or datasheet output would be fine.
Please help!