SlideShare a Scribd company logo
1 of 15
Surname:

Brown

Forename:

James

Form:

7B

Date of Birth: 23.4.84
Telephone:

020 1234 5678


A database is a collection of information.



You can have a very large one such as an
encyclopaedia on a CD-ROM, or a much
smaller one that you create yourself.
Library catalogues
 Football player statistics
 Argos catalogue shopping
 School pupil records
 Address book
 What could you use a database for? Try to
think of at least two ideas.



So that we can find information in a file, we
need to have some kind of structure.



The diagram shows how the various parts of a
file go together in a simple structure.
One record for
each Year 7 pupil
Surname:

Brown

Forename:

James

Form:

7B

Date of Birth: 23.4.84
Telephone:

020 1234 5678

Five fields in
the record


The diagram shows how a file is made up of a
collection of records.

• Each record is made up of a set of fields.
One record for
each Year 7 pupil
Surname:

Brown

Forename:

James

Form:

7B

Date of Birth: 23.4.84
Telephone:

020 1234 5678

Five fields in the
record
Microsoft Access
In the example, Surname, Forename,
Form, and Date of Birth are four of the
fields in each record. There would be one
record holding this information for each
pupil in Year 9.
One record for
each Year 7 pupil
Surname
:
Forename
:
Form:

Brown

Date of
Birth:
Telephone:

23.4.84

James
7B
020 1234 5678

Five fields in
the record


When you set up the fields you can say what
type of data the field will hold. The field type is
important when you sort the data into order.
Here are some common field types:



TEXT

• NUMBER
• DATES
A text field will hold any mixture of numbers
and letters.
Names are text and so are addresses, even
though the first line starts with a number.
Sorting a text field will be done using the
rules for alphabetical order.




This field type only holds numbers, you need
to think about this carefully in some cases.
For example, in the case of telephone numbers,
although we refer to them as phone numbers we do
not store them as numbers, or treat them as
numbers. (If someone asks your phone number you
say SIX, THREE, SEVEN, EIGHT, FIVE, not sixtythree thousand, seven hundred and eighty-five.)
Telephone numbers, especially long ones with dial
codes, should be stored as text.


If you want to sort information by a date like date
of birth, you need to store it as a date field. Dates
need to be sorted in a special way. Think about
how you would sort these dates into date order:

31/3/48, 1/4/97, 12/12/96, 11/12/96.



Which part of the date did you look at first?
If they were normal numbers, which part would
you look at first?


Computers are very accurate and this is why we use
them for storing information. Humans are not always
accurate and this can lead to problems!

 CHECK



YOUR DATA

The computer when sorting or searching will
always be accurate, but sometimes our mistakes
will make things look wrong. An example of an
error is as follows:
Extra
spac
e



John
Alfred
Bill
Jane
These names look as if the computer has sorted them
into the wrong order.
Look carefully at them and you will see a space before
the name ‘John’. The computer puts the space before
the letter A in the alphabet. Because the name ‘John’
starts with a space, the computer’s rules put it before
‘Alfred’. It looks wrong to us, but it is our mistake not
the computer’s.
1. Create a new database
2. Give the database an appropriate name
3. Look at the data you have to enter
4. Decide what type of data is required for each
field.
5. Decide how long each field needs to be to fit the
data (field size).
>

m tc ite s g a r th n
a h m re te a

>
=

m tc ite s g a r th no e u l
a h m re te a r q a

<

m tc ite s le s th n
a h m s a

<
=

m tc ite s le s th no e u l
a h m s a r qa

&

Ite s m tc b thc ria
m a h o rite

,

Ite s m tc e e c ria
m a h ith r rite

<
>

M tc ite s N Tth s m a th
a h m O e a e s e
c ria
rite

More Related Content

Viewers also liked

Conte infantil
Conte infantilConte infantil
Conte infantil
mariyamu
 
Giới thiệu dự án
Giới thiệu dự ánGiới thiệu dự án
Giới thiệu dự án
nhomhopestar
 
Conte infantil
Conte infantilConte infantil
Conte infantil
mariyamu
 
Biên bản họp nhóm học sinh
Biên bản họp nhóm học sinhBiên bản họp nhóm học sinh
Biên bản họp nhóm học sinh
nhomhopestar
 
Nutritive value of meat of guinea fowl
Nutritive value of meat of guinea fowlNutritive value of meat of guinea fowl
Nutritive value of meat of guinea fowl
ntshepisa lebetwa
 
Salamtk journal hcf 27 breast cancer مجلة سلامتك العدد الوردي 27 2013
Salamtk journal hcf 27 breast cancer مجلة سلامتك العدد الوردي 27 2013Salamtk journal hcf 27 breast cancer مجلة سلامتك العدد الوردي 27 2013
Salamtk journal hcf 27 breast cancer مجلة سلامتك العدد الوردي 27 2013
Prof. Ahmed Mohamed Badheeb
 

Viewers also liked (13)

Conte infantil
Conte infantilConte infantil
Conte infantil
 
Palestra: Allan Costa
Palestra: Allan CostaPalestra: Allan Costa
Palestra: Allan Costa
 
Giới thiệu dự án
Giới thiệu dự ánGiới thiệu dự án
Giới thiệu dự án
 
Lecture1
Lecture1Lecture1
Lecture1
 
Conte infantil
Conte infantilConte infantil
Conte infantil
 
Introduction To Information And Communication Technology
Introduction To Information And Communication TechnologyIntroduction To Information And Communication Technology
Introduction To Information And Communication Technology
 
Exploring Computers and Their Uses
Exploring Computers and Their UsesExploring Computers and Their Uses
Exploring Computers and Their Uses
 
Learning C and C++
Learning C and C++Learning C and C++
Learning C and C++
 
Biên bản họp nhóm học sinh
Biên bản họp nhóm học sinhBiên bản họp nhóm học sinh
Biên bản họp nhóm học sinh
 
Parts of the Computer System
Parts of the Computer SystemParts of the Computer System
Parts of the Computer System
 
Nutritive value of meat of guinea fowl
Nutritive value of meat of guinea fowlNutritive value of meat of guinea fowl
Nutritive value of meat of guinea fowl
 
Salamtk journal hcf 27 breast cancer مجلة سلامتك العدد الوردي 27 2013
Salamtk journal hcf 27 breast cancer مجلة سلامتك العدد الوردي 27 2013Salamtk journal hcf 27 breast cancer مجلة سلامتك العدد الوردي 27 2013
Salamtk journal hcf 27 breast cancer مجلة سلامتك العدد الوردي 27 2013
 
Oncologcial Emergencies by Prof Ahmed Badheeb 2014 part 1
Oncologcial  Emergencies by Prof Ahmed Badheeb 2014 part 1Oncologcial  Emergencies by Prof Ahmed Badheeb 2014 part 1
Oncologcial Emergencies by Prof Ahmed Badheeb 2014 part 1
 

Similar to Databases Main Lesson 1

Databases Foundation General
Databases Foundation GeneralDatabases Foundation General
Databases Foundation General
mrcarty
 
Database fundamentals
Database fundamentalsDatabase fundamentals
Database fundamentals
crystalpullen
 
1 Summer2017Assignment4IndividualAssignment-Due.docx
1 Summer2017Assignment4IndividualAssignment-Due.docx1 Summer2017Assignment4IndividualAssignment-Due.docx
1 Summer2017Assignment4IndividualAssignment-Due.docx
honey725342
 

Similar to Databases Main Lesson 1 (6)

Databases Foundation General
Databases Foundation GeneralDatabases Foundation General
Databases Foundation General
 
Database fundamentals
Database fundamentalsDatabase fundamentals
Database fundamentals
 
Databases
DatabasesDatabases
Databases
 
Database
DatabaseDatabase
Database
 
1 Summer2017Assignment4IndividualAssignment-Due.docx
1 Summer2017Assignment4IndividualAssignment-Due.docx1 Summer2017Assignment4IndividualAssignment-Due.docx
1 Summer2017Assignment4IndividualAssignment-Due.docx
 
Basic IMS For Applications
Basic IMS For ApplicationsBasic IMS For Applications
Basic IMS For Applications
 

Recently uploaded

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Recently uploaded (20)

Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 

Databases Main Lesson 1

  • 2.  A database is a collection of information.  You can have a very large one such as an encyclopaedia on a CD-ROM, or a much smaller one that you create yourself.
  • 3. Library catalogues  Football player statistics  Argos catalogue shopping  School pupil records  Address book  What could you use a database for? Try to think of at least two ideas. 
  • 4.  So that we can find information in a file, we need to have some kind of structure.  The diagram shows how the various parts of a file go together in a simple structure. One record for each Year 7 pupil Surname: Brown Forename: James Form: 7B Date of Birth: 23.4.84 Telephone: 020 1234 5678 Five fields in the record
  • 5.  The diagram shows how a file is made up of a collection of records. • Each record is made up of a set of fields. One record for each Year 7 pupil Surname: Brown Forename: James Form: 7B Date of Birth: 23.4.84 Telephone: 020 1234 5678 Five fields in the record
  • 7. In the example, Surname, Forename, Form, and Date of Birth are four of the fields in each record. There would be one record holding this information for each pupil in Year 9. One record for each Year 7 pupil Surname : Forename : Form: Brown Date of Birth: Telephone: 23.4.84 James 7B 020 1234 5678 Five fields in the record
  • 8.  When you set up the fields you can say what type of data the field will hold. The field type is important when you sort the data into order. Here are some common field types:  TEXT • NUMBER • DATES
  • 9. A text field will hold any mixture of numbers and letters. Names are text and so are addresses, even though the first line starts with a number. Sorting a text field will be done using the rules for alphabetical order.
  • 10.   This field type only holds numbers, you need to think about this carefully in some cases. For example, in the case of telephone numbers, although we refer to them as phone numbers we do not store them as numbers, or treat them as numbers. (If someone asks your phone number you say SIX, THREE, SEVEN, EIGHT, FIVE, not sixtythree thousand, seven hundred and eighty-five.) Telephone numbers, especially long ones with dial codes, should be stored as text.
  • 11.  If you want to sort information by a date like date of birth, you need to store it as a date field. Dates need to be sorted in a special way. Think about how you would sort these dates into date order: 31/3/48, 1/4/97, 12/12/96, 11/12/96.   Which part of the date did you look at first? If they were normal numbers, which part would you look at first?
  • 12.  Computers are very accurate and this is why we use them for storing information. Humans are not always accurate and this can lead to problems!  CHECK  YOUR DATA The computer when sorting or searching will always be accurate, but sometimes our mistakes will make things look wrong. An example of an error is as follows:
  • 13. Extra spac e  John Alfred Bill Jane These names look as if the computer has sorted them into the wrong order. Look carefully at them and you will see a space before the name ‘John’. The computer puts the space before the letter A in the alphabet. Because the name ‘John’ starts with a space, the computer’s rules put it before ‘Alfred’. It looks wrong to us, but it is our mistake not the computer’s.
  • 14. 1. Create a new database 2. Give the database an appropriate name 3. Look at the data you have to enter 4. Decide what type of data is required for each field. 5. Decide how long each field needs to be to fit the data (field size).
  • 15. > m tc ite s g a r th n a h m re te a > = m tc ite s g a r th no e u l a h m re te a r q a < m tc ite s le s th n a h m s a < = m tc ite s le s th no e u l a h m s a r qa & Ite s m tc b thc ria m a h o rite , Ite s m tc e e c ria m a h ith r rite < > M tc ite s N Tth s m a th a h m O e a e s e c ria rite