if I have a circuit that goes something like this:
peoples (person's name, etc.) jobs (personNumber, jobNumber)
and a person can have more than one task, how to write a request that tells me if a person has less than two tasks
select personNumber from peoples
where personNumber not in
(
select personNumber from jobs
where ??personNumber appears two times or more in jobs??
);
thanks to someone who takes time to help
source
share