i have a single "tasks" table with a taskID primary key and a parentID field. the parentID field is an "informal" foreign key in that i've not establish a formal relation between the taskID field and the parentID field.
tasks
---------------
taskID
parentID
task
...
i need a query that will return all "parent" task records that only have one child record where the child record itself is not a parent of anything else.
i know how to make a query that will return all parent tasks with child tasks, but i'm not sure how to limit it to only parents tasks with one child task.
thanks for any help,
glenn
tasks
---------------
taskID
parentID
task
...
i need a query that will return all "parent" task records that only have one child record where the child record itself is not a parent of anything else.
i know how to make a query that will return all parent tasks with child tasks, but i'm not sure how to limit it to only parents tasks with one child task.
thanks for any help,
glenn