How to find child records given a parent key
OPRJan 11 2009 — edited Jan 13 2009I have a master table which is parent for several child tables. I want to display a button to delete a record in master table. I would prefer show this button conditionally so when a master record has child records, I don't show delete button and no error is raised.
Of course I could scan every child table to find out child records, but I think must exist a generic method
How can I find out if a given parent key has child records?
Thanks in advance
Oscar
P.S: I'm using 10gR2
Edited by: user10712087 on 13/01/2009 02:31 PM