📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

A foreign key can reference a table in the same database only, or also another database?

A. Only a view
B. Always any database in the world
C. Never another table
D. Normally it references a table in the same database, with cross-database links depending on the DBMS ✅

Correct Answer: D. Normally it references a table in the same database, with cross-database links depending on the DBMS

Explanation

Standard foreign keys link tables inside one database, and cross-database references are limited or unsupported in many systems.