i have this table:
Job(j_no,position,company,salary);
and I want to get all the positions that only one company offers. What I was trying to do was:
SELECT position, COUNT(*) AS total FROM (SELECT * FROM Job) GROUP BY
position;
and i get for example:
**position / total**
Director | 1
Draw | 1
Software Engineer | 2
electrician | 2
how can I return only the position that have a 1 total?
i try to do:
SELECT position, COUNT(*) AS total FROM (SELECT * FROM Job) GROUP BY
position WHERE total=1;
but i get error.
Would appreciate help, thank's.