Question
Which of the following integrity constraints ensures
that every non-null foreign key value must reference an existing primary key value in another table?Solution
Referential integrity enforces a relationship between two tables by ensuring that a foreign key in one table matches a valid primary key in another table. This constraint guarantees that the data is consistent and prevents "orphan" records. For example, in an "Orders" table with a foreign key referencing a "Customers" table, referential integrity ensures that every order must belong to an existing customer. If a foreign key value does not match any primary key value in the referenced table, the database system will reject the operation, ensuring data consistency. Why Other Options Are Incorrect:
- Option A: Entity integrity relates to primary keys, ensuring they are unique and not NULL. It does not address relationships between tables.
- Option C: Domain integrity enforces the validity of data types and permissible values for attributes, such as ensuring an "age" column only contains integers.
- Option D: Key integrity is not a formal term in relational database theory. It may be confused with primary or candidate key constraints but is not relevant here.
- Option E: Tuple integrity is not a standard concept in relational databases, making this option invalid.
Rs. 5000 invested for 2 years in a scheme offering compound interest (compounded annually) of 15% p.a. gives an interest that is Rs. 25 less than the in...
The ratio of the sums invested by ‘X’ and ‘Y’ in SIP ‘M’ and ‘N’ is 7:4, respectively. If ‘X’ invested Rs. 6300 more than ‘Y’, t...
Rs. 5000 when invested at simple interest of r% p.a. amounts to Rs. 7200 in 24 months. If the same sum had been invested for 1 year at compound interest...
A sum of money triples itself in 12 years. Find the rate percent per annum.
Rs. 6,500 is invested in scheme ‘A’ offering simple interest of 14% p.a. and Rs. 9220 in scheme ‘B’ offering simple interest of 5% p.a. What is ...
At what % of simple interest per annum will Rs. 400 amount to Rs. 520 in five years?
A sum is lent on compound interest for 2 years at 12% p.a. If the compound interest on the sum is Rs.4579.2, find the sum.
- Simple interest on a sum for 2 years is Rs. 300 and compound interest for same period is Rs. 315. Find the principal. (Rate of interest is same for both.)
A certain sum is invested for three years at rate of interest being 25% and it is invested in both simple interest and compound interest (compounded ann...
- A sum of money grows to Rs. 7,500 in 5 years and Rs. 8,250 in 7 years under simple interest. What is the original principal amount?