Good Example Of Essay On Constraints And Indexes

Type of paper: Essay

Topic: Data Analysis, Database, Politics, Money, Payment, Law, Integrity, Business

Pages: 8

Words: 2200

Published: 2020/10/31

\s

Referential integrity is a concept that ensures relationships between tables are consistent. In certain cases in relational database management system, inconsistency issues may arise when relationship is built between two tables. For example, if in a case, table 2 has a foreign key that points to the table 1. Referential integrity prevents the user from adding a record to table 2 that cannot be connected to table 1. Referential integrity rules are also applied in the case, when records from one table are deleted that is linked to the other. For example, if in table 1, records are deleted, then they will also be deleted from table 2.
Similarly, in case of E-Trading Post database, there are two foreign keys, i.e. Payment Method ID, and Category ID. Payment Method ID is a foreign key in the seller’s entity table and category ID is the foreign key in Item Auction table. If any user changes the payment method ID, then it will also be changed in the payment table or vice versa.
In case of category ID, if any product category is changed in the item auction table, then it will be updated in the category table as well. However, if the user try to change or delete the category, then the database would prevent it as other records are linked to the same.
The primary keys in any database provides direction to the tables. According to the validation and indexes rules, the primary key must be unique and cannot be NULL. Therefore, in case of E-Trading Post Database, all the primary keys in the tables are set to NOT NULL. Moreover, the rules also specify that there could be no more than one primary key in any table.

Cite this page
Choose cite format:
  • APA
  • MLA
  • Harvard
  • Vancouver
  • Chicago
  • ASA
  • IEEE
  • AMA
WePapers. (2020, October, 31) Good Example Of Essay On Constraints And Indexes. Retrieved December 27, 2024, from https://www.wepapers.com/samples/good-example-of-essay-on-constraints-and-indexes/
"Good Example Of Essay On Constraints And Indexes." WePapers, 31 Oct. 2020, https://www.wepapers.com/samples/good-example-of-essay-on-constraints-and-indexes/. Accessed 27 December 2024.
WePapers. 2020. Good Example Of Essay On Constraints And Indexes., viewed December 27 2024, <https://www.wepapers.com/samples/good-example-of-essay-on-constraints-and-indexes/>
WePapers. Good Example Of Essay On Constraints And Indexes. [Internet]. October 2020. [Accessed December 27, 2024]. Available from: https://www.wepapers.com/samples/good-example-of-essay-on-constraints-and-indexes/
"Good Example Of Essay On Constraints And Indexes." WePapers, Oct 31, 2020. Accessed December 27, 2024. https://www.wepapers.com/samples/good-example-of-essay-on-constraints-and-indexes/
WePapers. 2020. "Good Example Of Essay On Constraints And Indexes." Free Essay Examples - WePapers.com. Retrieved December 27, 2024. (https://www.wepapers.com/samples/good-example-of-essay-on-constraints-and-indexes/).
"Good Example Of Essay On Constraints And Indexes," Free Essay Examples - WePapers.com, 31-Oct-2020. [Online]. Available: https://www.wepapers.com/samples/good-example-of-essay-on-constraints-and-indexes/. [Accessed: 27-Dec-2024].
Good Example Of Essay On Constraints And Indexes. Free Essay Examples - WePapers.com. https://www.wepapers.com/samples/good-example-of-essay-on-constraints-and-indexes/. Published Oct 31, 2020. Accessed December 27, 2024.
Copy

Share with friends using:

Related Premium Essays
Contact us
Chat now