Question
What integrity constraints are specified on database schema? Why is each considered important?

Answer

A database schema implies the structure and design of database. Database schema is regarded as a collective term for various properties of database such as, tables, constraints, relations, etc. A relational database schema consists of a set of relational database schemas and set of integrity constraints.
There are mainly four different integrity constraints that are imposed on a relational database. These are mentioned as:
  1. Domain Constraints: These constraints in the database schema state the conditions that each relationa linstance must satisfy. The value of each attribute of a relation must be an indivisible value and must be drawn from the domain associated with that attribute. Hence, the value of an attribute must confirm to the data type associated with the domain.
  2. Key Constraints and NULL Value: These constraints imply the existence of candidate keys. As per the Key Constraints, in every instance of a relational database schema, the tuples can be uniquely identified by their values for certain attributes. This implies that each data record corresponding to a tuple of relation in a table must be distinct. That is, in other words, no two tuples in a relation can have the same combination of values for all their attributes. Every relation has at least one key, which is the combination of all its attributes and is known as Super-Key. The Super-key specifies the uniqueness constraints.
However, a Super-key may contain some additional attributes that are not necessary for unique identification. Minimal super key is that part of super key from which removal of any attribute from the Super-key leaves a set of attributes that is not a Super-key. That is, if any attribute is removed, then the uniqueness constraint is disturbed. The Minimal Super-key is also known as Candidate key.

In case a relation has many Candidate keys, then out of them one is arbitrarily chosen and regarded as Primary key. The attributes of Primary key are represented as underlined in a schema. The other Candidate keys are regarded as Alternate or Unique keys.
  1. Entity Integrity Constraints: A Primary key is used to identify individual tuple in a relation. As per the Entity Integrity Constraints, the value of Primary key cannot be null. If in case, the Primary key has null value, then it implies that we cannot identify such tuples as they are same. This implies that tuples are duplicated and the uniqueness constraints are violated.
  2. Referential Integrity Constraints: Referential integrity constraint is specified between two or more relations to maintain consistency among the tuples of such relations. These are the constraints implies by the existence of foreign keys. Hence, a tuple in one relation that refers to another relation must refer to an existing tuple in that other relation.
The above mentioned integrity constraints are certain conditions that are imposed on a database schema. The importance of integrity constraints is that by imposing certain specifications, the integrity constraints restrict the data that is stored in a database instance. In case, the database instance satisfies all the integrity constraints, then it is regarded as a legal database instance and hence, can be stored in the database. In case, these constraints are violated, then it implies that database is not maintained in an efficient manner and the database contains illegal database instances.

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free

Similar questions

Fill in the missing information in the following Rectifying Journal Entries:
Prepare a Bank Reconciliation Statement as on 31st March, 2019 from the following:
  1. On 31st March, 2019, Cash Book of a firm showed bank balance of ₹ 36,000 (Dr.).
  2. Cheques had been issued for ₹ 30,000, out of which cheques of ₹ 24,000 were presented for payment.
  3. Cheques of ₹ 8,400 were deposited in the bank on 28th March, 2019 but had not been credited by the bank. Also, a cheque of ₹ 3,000 entered in the Cash Book on 30th March, 2019 was banked on 3rd April.
  4. A cheque from Suresh for ₹ 2,400 was deposited in the bank on 26th March, 2019 was dishonoured, advice was received on 2nd April.
  5. Pass Book showed bank charges of ₹ 120 debited by the bank.
  6. One of the Debtors deposited ₹ 3,000 in the bank account of the firm on 26th March, 2019, but the intimation in this respect was received from the bank on 2nd April.
Fill in the missing figures in the following:

Give journal entries for the following adjustments in final accounts assuming CGST and SGST @ 9% each:
  1. Closing Stock ₹ 80,000.
  2. Outstanding salaries ₹ 21,000.
  3. Insurance premium amounting to ₹ 15,000 is paid in advance.
  4. ₹ 9,000 received for rent related to the next accounting period.
  5. Commission accrued but not received during the accounting year ₹ 1,500.
  6. Write off ₹ 500 as further bad debts.
  7. Goods costing ₹ 8,000 destroyed by fire and insurance company admitted a claim for ₹ 5,000 only.
  8. Goods costing ₹ 10,000 (Market value ₹ 11,000) were taken by proprietor for personal use.
What are closing entries? Give four examples of closing entries.
A bill for ₹ 1,000 is drawn by A on B and accepted by the latter payable at the New Delhi, Bank of India. Show what entries should be passed in the books of A under each of the following circumstances:
  1. If A retained the bill till the due date and then realized it on maturity.
  2. If A discounted it with his bank for ₹ 950.
  3. If A endorsed it to his creditor C in full settlement of his debt.
  4. If A sent it to his bank for collection.
Also, give the necessary entries in each of the cases if the bill is dishonoured.
Give two examples of entries which appear in a 'Journal Proper'.
How can the profit or loss of a trader be ascertained with the help of a statement of affairs?
Distinguish between the Straight Line Method and Written Down Value Method of providing Depreciation.