Microsoft
Software
Hardware
Network
Question : Foreign key on same table
Hello Experts,
I have a table in my DB containing web-pages. The Primary Key is PageID. In the same table I have PageParentPageID. I can't add a FK between Pageparent and PageID. I need to ensure that the PageParentPageID exists in the table.
Sugestions please.
Best Regards
Tomas
Answer : Foreign key on same table
> I can't add a FK between Pageparent and PageID
why not? what is the error you get?
note that before you add that constraint, all values of PageParent must exist indeed in PageID ...
Random Solutions
setup NAT on Cisco ASA
Windows XP OEM in a virtual machine
tables with FK relationships at all
SATA hot swap in windows server 2008 (URGENT)
Unix filler
Security Alert when Opening Outlook
What causes error "0x80070015" when connecting to bluetooth device in window 7?
SBS 2008 shared folder permissions problem - read only - need full control
Insert into MySQL Table from MSSQL Insert Trigger
Schema Changes by User