I have a table called employee.It has 7 attributes/columns.Two of its columns are empid and managerid.When I am creating the table I must ensure that managerid is in empid.How do I enforce such a constraint?
Thank you
column dependency in the same table
Page 1 of 11 Replies - 2007 Views - Last Post: 24 August 2012 - 10:39 AM
Replies To: column dependency in the same table
#2
Re: column dependency in the same table
Posted 24 August 2012 - 10:39 AM
I got the answer.We can do so by making the other column a foreign key references the primary key of the same table.
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote



|