Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 1 out of 3 pages
Essay

M1- Explain referential integrity and the purpose of primary keys in building the relationships between tables

Document preview thumbnail
Preview 1 out of 3 pages

For M1, learners should show evidence that they understand the concept of referential integrity and the mechanisms that exist to support the enforcement of referential integrity within a database package. They should also be able to explain the purpose of primary keys and how they are used to build the relationships between tables. Reference should also be made to foreign keys.

Content preview

M1
Referential integrity

Many relational databases include referential integrity sure referential integrity makes sure
relationships stay stable and consistent throughout such as when it’s getting synchronised
and updated. Referential integrity will not work when the relation to the foreign key no longer
exists. For example if a relationship exists between two tables referential integrity makes
sure the relationships stay consistent and stable, you can force referential integrity when you
create a new relationship between two tables so when you delete something related within
the relationship it will alert you when if you tried to delete that record however if you still
delete the record it will also delete everything deleted to the data , for example if student ID
is linked with the Student Record it will delete everything related to that data.

This is an example of when you can enforce referential
integrity between two fields. Most of the time when you
enforce referential integrity the relationship line will be bold
which means it worked. The image below shows this
working.




First I turned off enforce referential integrity between for a relationship which was
between the student and Incident Table.




I then deleted went onto the student table which I deleted one of the student records
which was 150001.

Document information

Study Level
Subject
Uploaded on
August 18, 2016
Number of pages
3
Written in
2015/2016
Type
Essay
Professor(s)
Unknown
Grade
Merit
$4.90
Purchased by 6 students

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
topqualityworka
3.7
(425)
Sold
2320
Followers
1115
Items
210
Last sold
2 year ago

Reviews from verified buyers



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions