what is foreign key? : Sql dba
Answer / Awashesh Kumar Tiwari
A foreign key is a field or set of fields in one table that refers to the primary key of another table. It enforces referential integrity by ensuring that relationships between tables are maintained, and it improves data consistency by preventing invalid data from being inserted into the database.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is difference between pl and sql?
Why query optimization is needed?
Explain what is sql*plus?
What is a join?Explain the different types of joins?
6 Answers Bank Of India, CitiGroup, Google, ICICI, Saama Tech, SkyTech, TCS,
What is the use of cursor ? how cursor allocate context area for executing the sql statement?
How many tables can you join in sql?
Difference between NVL, NVL2 and NULLIF
What is sequence in sql?
write the Sql query for creating database backup?
Difference between DBMS and RDBMS...CODD's rules
IN A TABLE HAVE ONE COLUMN PRIMARY KEY..IT WILL NOT ALLOWS NULL VALUES AND DUPLICATE VALUES..INSTEAD OF PRIMARY KEY WHY CANT WE USE UNIQUE AND NOT NULL.THESE TWO ALSO DOESNT ACCEPT NULL VALUES IN NOT NULL AND UNIQUE DOESNT ACCEPT DUPLICATE VALUES? SO WHAT IS THE DIFEERENCE BETWEEN(UNIQUE,NOT NULL) AND PRIMARY KEY??????
What is the difference between join and union.
27 Answers 3i Infotech, ABC, Oracle, Polaris, TCS, XT Global,
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)