I'm having a problem in sql, can anyone help me I have 3 tables sublocation, postingdetail and employee
I have to delete sublocid from sublocation table but first i have to check that is there any employee working on that sublocation from postingdetail table, if yes then the record shouldn't be deleted.
table sublocation
sublocid
sublocname
mainlocid
table postingdetail
empid
subloc
mainloc
table employee
empid
empname
sublocid
mainlocid