http://fms-itskills.ncl.ac.uk rebecca mccready faculty of medical sciences newcastle university...

6
http://fms-itskills.ncl.ac.uk Rebecca McCready Faculty of Medical Sciences Newcastle University Lecture 2 – Relationships and Lookup fields

Upload: mabel-phillips

Post on 05-Jan-2016

219 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Http://fms-itskills.ncl.ac.uk Rebecca McCready Faculty of Medical Sciences Newcastle University Lecture 2 – Relationships and Lookup fields

http://fms-itskills.ncl.ac.uk

Rebecca McCreadyFaculty of Medical SciencesNewcastle University

Lecture 2 – Relationships and Lookup fields

Page 2: Http://fms-itskills.ncl.ac.uk Rebecca McCready Faculty of Medical Sciences Newcastle University Lecture 2 – Relationships and Lookup fields

http://fms-itskills.ncl.ac.uk

Introduction to Databases

• The ‘relationship’ in the database• Types of relationship• Lookup fields• Relationship diagrams

Page 3: Http://fms-itskills.ncl.ac.uk Rebecca McCready Faculty of Medical Sciences Newcastle University Lecture 2 – Relationships and Lookup fields

http://fms-itskills.ncl.ac.uk

The ‘relationship’

• Primary key – Foreign keyIn Excel

In Access

Page 4: Http://fms-itskills.ncl.ac.uk Rebecca McCready Faculty of Medical Sciences Newcastle University Lecture 2 – Relationships and Lookup fields

http://fms-itskills.ncl.ac.uk

Types of relationships

Page 5: Http://fms-itskills.ncl.ac.uk Rebecca McCready Faculty of Medical Sciences Newcastle University Lecture 2 – Relationships and Lookup fields

http://fms-itskills.ncl.ac.uk

Lookup fields

Page 6: Http://fms-itskills.ncl.ac.uk Rebecca McCready Faculty of Medical Sciences Newcastle University Lecture 2 – Relationships and Lookup fields

http://fms-itskills.ncl.ac.uk

Relationship diagrams

• Display the links between tables graphically.