What is referential integrity? What are the advantages of it?
Answers were Sorted based on User's Feedback
Answer / anand
Referential integrity
Referential integrity in a relational database is
consistency between coupled tables. Referential integrity
is usually enforced by the combination of a primary key or
candidate key (alternate key) and a foreign key. For
referential integrity to hold, any field in a table that is
declared a foreign key can contain only values from a
parent table's primary key or a candidate key. For
instance, deleting a record that contains a value referred
to by a foreign key in another table would break
referential integrity. A relational database management
system (RDBMS) enforces referential integrity, normally
either by deleting the foreign key rows as well to maintain
integrity, or by returning an error and not performing the
delete. Which method is used would be determined by the
referential integrity constraint, as defined in the data
dictionary.
| Is This Answer Correct ? | 44 Yes | 7 No |
Answer / daynik
Referential integrity is a database concept that ensures
that relationships between tables remain consistent. When
one table has a foreign key to another table, the concept of
referential integrity states that you may not add a record
to the table that contains the foreign key unless there is a
corresponding record in the linked table. It also includes
the techniques known as cascading update and cascading
delete, which ensure that changes made to the linked table
are reflected in the primary table.
| Is This Answer Correct ? | 11 Yes | 5 No |
Answer / rajdeo kumar
it show referance to another location with accuracy.
| Is This Answer Correct ? | 10 Yes | 28 No |
one of my database size is 2gb and Unrestricted Growth for Data file up to 10%.But every day after day I am getting Primary Data file is full 99.999 please take appropriate actions.Why it is? Even disk space is also not full,but still I am getting the alerts.
Why are views required in the sql server or in any other database?
Can we write trigger for view?
Do you know what are the differences between lost updates and uncommitted dependencies?
Why I have to use stored procedures?
Delete duplicate records from the table?(Table must have unique id)
7 Answers TCS, Thomson Reuters,
CLR Integration ? what is Notification services ?
Which joins are sql server default?
What is difference between sql and sql server?
Can we call stored procedure in view in sql server?
Explain system scalar functions?
What is “begin trans”, “commit tran”, “rollback tran” and “savetran”?
Oracle (3259)
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)