Intro databases

13
Part 1

Transcript of Intro databases

Page 1: Intro databases

Part 1

Page 2: Intro databases

To answer the question “what is a database?”

To understand the basic components of a database and start to plan/create our own.

Page 3: Intro databases

Database

Table

Field

Record

Primary key

Page 4: Intro databases
Page 5: Intro databases
Page 6: Intro databases

Yellow pages

Mobile phones

Microsoft Access

Page 7: Intro databases

Patient information in a hospital

Car registration numbers and owners

Names and phone numbers of friends

Student information in a school

Criminal Records

What kind of information What kind of information could we store in a could we store in a

database?database?

Page 8: Intro databases

Each table within a database will have a collection of fields and records.

e.g. Customer details is a table

TableTabless

Page 9: Intro databases

Each piece of information in a record is called a field.

e.g. Name: Joe Bloggs is a field.

FieldsFields

Page 10: Intro databases

Each set of information about a person / object is called a record.

e.g. Name: Joe BloggsAddress: 33 Wood Lane, PorthPhone number: 01443 123456

is a record which has 3 fields.

RecordsRecords

Page 11: Intro databases

Primary keyPrimary key

Every table in a database needs a primary key; a

primary key uniquely identifies each record inthe table.

e.g. Applies an ID to a record e.g. St1234

Page 12: Intro databases

Table

Record

Field

Primary key

Page 13: Intro databases