100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

Get your relationship correct and achieved distinction relationship is crucial part in Unit 2.

Rating
-
Sold
2
Pages
5
Grade
D
Uploaded on
15-01-2023
Written in
2022/2023

Ace Unit 2 with these top-notch notes. Covering all key concepts and topics, these notes are essential for understanding and excelling in the material. Perfect for students looking for an edge in their studies. Grab your copy now

Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Study Level
Examinator
Subject
Unit

Document information

Uploaded on
January 15, 2023
Number of pages
5
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

UNIT 2 NOTES

DATA BASE = COLLECTION RELATED DATA STORED IN ORGANISE OR STRUCTURED AND LOGICAL
MANNER.

ORGANISE, STRUCTURED MEAN TABLE THAT CONTAIN INFORMATION

RECORD A record is all the data or information about one person or one thing.




FIELD= a 'field' is one piece of data or information about a person or thing. Field is a unit of data
about something or someone.




Field name= field name is a first name or last name.

Flat file= when we store all the information into one table.

Field length = Most databases will have a default field length set up; in this case it is 50. This means
that each text field can store up to 50 letters, numbers, or symbols.

Primary key= is a unique field that is used to identify record. We can’t repeat in primary key for e.g.,
400, 400 NO we can’t do that



Foreign key: A foreign key is used to link tables together and create a relationship. It is a field in one
table that is linked to the primary key in another table. we can repeat in foreign key for eg 400, 400
YES




In the database above there are three tables:

 Artists
 Recordings
 Genre

The primary key in the Artists table is Artist ID

The primary key in the Genre table is Genre ID

These primary keys link to identically named fields in the Recordings table. Each of those identically
named fields are known as a 'foreign key'.

Referential integrity

Every foreign key value has a matching value in the corresponding primary key. Referential integrity
to ensure the data is accurate or trusted. Because if there is an error it could create a problem.

, Referential integrity uses these to ensure that there are no orphan records i.e., it prevents you from
deleting related records.

Referential integrity can also alert you if you try to delete a record which is related to another one.

It can also be used to cascade changes made to the database.




Compound ley=A compound / composite primary key combines more than one field to
make a unique value.
Example 1
Sometimes, a single field is not enough to uniquely identify a record.
Consider a pack of cards. There are four suits, hearts, diamonds, clubs and spades. A single
primary key would not uniquely identify a particular card based just upon the suit.
There are also thirteen values from the Ace right through to the King. Again, this would not
be sufficient to uniquely identify a card.
But, if you made a primary key out of the suit and the value, then every card in the pack
could be uniquely identified.




Example 2
A student can only be in one place at a time.
Combining the student's name, date and period gives a unique value for each record.
The three fields: student, date and period make up the compound or composite primary key
in this table.




Advantages of flat file

1. All records are stored in one place.
2. Easy to understand and configure using various standard office applications.
3. It is an excellent option for small databases.
4. It requires less hardware and software components.
$7.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
jaspreetsingh1

Get to know the seller

Seller avatar
jaspreetsingh1 Aberystwyth University
Follow You need to be logged in order to follow users or courses
Sold
7
Member since
3 year
Number of followers
5
Documents
11
Last sold
1 month ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

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

Frequently asked questions