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
Sql Query New data at 9am only
Running Access VBA on Open Office Base
cannot receive email
Editable dropdown list in ASP.net 3.5 using C#
can I use my hard drive with XP and data on it with a system with replaced motherboard ?
Operation Must Use an Updateable Query
Restarting a WPF application to apply updates
SQL Reporting Services - OnPrint event
Intel VT vs. AMD-V for Hyper-V
get latest file in the directory in unix