Project 2 Data Structure Design. Objectives To create two data structure designs To understand the advantages of linking tables To be able to describe.

Slides:



Advertisements
Similar presentations
MS-Access XP Lesson 3. Validation Rule Property 1.Validation rule defines limitations to the data in a filed. Field Name:Marks Type:Number Validation.
Advertisements

MS-Access XP Lesson 1. Introduction to MS-Access Database Management System Software (DBMS) Store data in databases Database is a collection of table.
© Dolinski This presentation will help you with the database section of your coursework. It will cover: – What you need to do.
Computer Science & Engineering 2111 Introduction to Database Systems 1CSE 2111-Introduction to Database Systems.
 Microsoft Access is one of two primary database offering from Microsoft.  Access is a network/desktop-based database.  Advantage: It is easy to use.
Database A collection of related information stored on a computer and organized in a manner that allows access, retrieval, and use of that data.
© Steven Alter, 2007, all rights reserved Database concepts Difference between a database and the Internet Reason for having a defined data structure Relational.
ISP 121 Week 1 Introduction to Databases. ISP 121, Winter Why a database and not a spreadsheet? You have too many separate files or too much data.
Database Basics. Definitions Database Relational database Table Record Field Primary key.
Data Types and Field Properties 5.01 Understand database tables used in business.
Databases. Objectives Define what a database is. Understand the difference between a flat and relational database Design and create a relational database.
Data type – determines the type of data and range of values that can be entered in a field.
Database terms Mr. Brunton.
Computer Science & Engineering 2111 Introduction to Database Systems 1CSE 2111 Introduction to Database Systems.
Tables. What is a Table? A part of a database Container for data Pieces of data, put together, have a meaning.
DATABASE. Computer-based filing systems Information in computer-based filing systems are stored in DATA FILES. A FILE is a collection of RELATED RECORDS.
Designing a Database (Part I) -Identify all fields needed to produce the required information -Group related fields into tables -Determine Each Table’s.
Microsoft Access 2013 Design and Create Tables to Store Data Chapter 2.
Making a great Project 2 OCR 1994/2360. Design Some candidates dive in, make a database or spreadsheet, then try and make a design afterwards. This won’t.
Complete theory from last lesson… Put today’s date in the front of your book Read pages 46 and 47 of the textbook…
5 5 Data types Logical/Boolean Has only two alternatives: Yes or no, on or off true or false Text/Alphanumeric Refers to all letters and numbers and other.
G045 Lecture 09 ERD Diagrams (Entity Relationship Diagrams) Mr C Johnston ICT Teacher
® Microsoft Access 2010 Tutorial 2 Building a Database and Defining Table Relationships.
Presented By: Gail Rose-Innes Camps Bay High School ICT & CAT Department Microsoft Access 2010.
Computer Science & Engineering 2111 Lecture 10 Introduction to Database Management Systems 1.
Version: 2.0. Forenam e of parent Surname of parent Address 1 Address 2 Name of child Age of child School database example. Try adding a few rows for.
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
IE 423 – Design of Decision Support Systems Database development – Building Tables
University of Sunderland COMM2 Unit 4 Health Information Management Application Building Keys, Data Organisation and Relationships COMM2Q.
Relational Databases. Relational database  data stored in tables  must put data into the correct tables  define relationship between tables  primary.
Introduction to Access Chapter 13 pages 1-4. What is a database??? Related information is stored in databases  All SC student information is stored in.
Study Opportunities1 Database table quiz What is your name?
D1 FMA Review. Many-to-Many Relationships - Examples Car Hire –A customer may hire one or more cars –A car may be hired by one or more customers Gym Club.
Mr C Johnston ICT Teacher
VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin.
DATABASES COLLECTION OF INFORMATION FIELDS & CALCULATED FIELD DATA TYPES LINKED TABLES & FOREIGN KEY.
C REATING & D ESIGNING A D ATABASE 1. C REATING A D ATABASE 2 There are two different ways to create a new Access database: 1. Start from scratch with.
Software. Because databases can get very big, it is important to decide exactly what is going to be stored in each field. Fields can be text, number,
Getting Started in Access 1 Using an existing Database Database Window Table Design View Parts of a Table Views in Access Navigating in Access Entering.
Learning Outcome 02 : Be able to create dynamic products Unit R007: Creating dynamic products using sound and vision Cambridge Nationals in ICT R007: Creating.
N5 Databases Notes Information Systems Design & Development: Structures and links.
Microsoft Access 2016 Design and Create Tables to Store Data
DATA TYPES.
Creating a database table
Databases Chapter 9 Asfia Rahman.
Building Tables & Defining Relationships
Exploring Microsoft Access 97
Unit 16 – Database Systems
Microsoft Access 2013 Design and Create Tables to Store Data
GCE Applied ICT G053: Lesson 02 Web Structure and Hosting
BTEC NCF IT Unit 02 Creating Systems to Manage Information Lesson 05 – Data Types Mr C Johnston.
Data Types and Field Properties
Design and Create Tables to Store Data Chapter 2
Introduction to Computer Science (CIS 101)
Data Types & File Size Calculations
Designing data capture forms
Data Types and Field Properties
Data Types and Field Properties
Database Theory.
ICT Database Lesson 2 Designing a Database.
Data Types and Field Properties
Data Types and Field Properties
Databases This topic looks at the basic concept of a database, the key features and benefits of a Database Management System (DBMS) and the basic theory.
More to Learn Different data types
IT Solutions for Administrators - Databases
Chapter 2 Design Table and Form.
Lecture 2 Lecturer: awdang aziz MS access
Chapter 2 Design Table and Form.
Data Types and Field Properties
Data Types and Field Properties
Presentation transcript:

Project 2 Data Structure Design

Objectives To create two data structure designs To understand the advantages of linking tables To be able to describe the advantages and disadvantages of your structures

Marks Produce designs for the data structure (3 marks)Mark Produce a file structure for your database.1 Produce alternative designs.2 Write down a list of advantages and disadvantages of each structure and give reasons why your choice is best. 3

Introduction You will need to create two database structures for your project and each will contain the field names, data types, properties and validation rules. One of the designs will be the same as the two tables in your Project 2 database and the other one will be different. The differences can be: –One design has one table while the other has two –There could be some fields in one design that are missing in the other –The data types of a particular field are different –The validation rules are different You then need to say what is good and bad about each design and why you chose the one you did. The changes must be appropriate.

Design 1 TABLE - MOTORBIKES FIELD NAMEDATA TYPEPROPERTIESVALIDATION RULE Motorbike IDAutonumberLong Integer MakeText20 CharactersSuzuki OR Honda OR Kawasaki ModelText20 Characters ColourText20 CharactersN/A PriceNumberCurrency>0 YearNumberIntegerN/A Date BoughtDateShort dateN/A TABLE - CUSTOMERS FIELD NAMEDATA TYPEPROPERTIESVALIDATION RULE Customer IDAutonumberLong Integer SurnameText20 Characters ForenameNumberCurrency AddressNumberInteger Motorbike IDNumberLong integer

Design 2 FIELD NAMEDATA TYPEPROPERTIES Make & ModelText40 Characters ColourText20 Characters PriceNumberCurrency YearNumberInteger Date BoughtDateShort date NameText60 Characters AddressText120 Characters

Flat File vs Relational Database

Splitting Name & Address

FIELD NAMEDATA TYPEPROPERTIES TitleText4 Characters ForenameText20 Characters SurnameText20 Characters StreetText30 Characters TownText40 Characters Post CodeText8 Characters FIELD NAMEDATA TYPEPROPERTIES NameText40 Characters AddressText80 Characters DESIGN 1 DESIGN 2

Yes/No vs Text Fields

FIELD NAMEDATA TYPEPROPERTIES TaxedYes/No Suitable for LearnersYes/No MOTYes/No FIELD NAMEDATA TYPE PROPERTIESVALIDATION RULE TaxedText40 CharactersYes OR No Suitable for Learners Text80 CharactersYes OR No MOTText80 CharactersYes OR No DESIGN 1 DESIGN 2

Changing Data Type II FIELD NAMEDATA TYPEPROPERTIES TaxedYes/No MOTYes/No DESIGN 1 FIELD NAME DATA TYPE PROPERTIESVALIDATION RULE Taxed (months) NumberByte>=0 AND <=12 MOT (months) NumberByte>=0 AND <=12 DESIGN 2

Number Lengths Byte byte of memory Integer–32,768 to 32,767 2 bytes of memory Long Integer–2,147,483,648 to 2,147,483,647 4 bytes of memory YOU MUST LEAVE CURRENCY AND AUTONUMBER FIELDS AS LONG INTEGER

Number Lengths FIELD NAMEDATA TYPEPROPERTIES MileageNumberLong Integer Year MadeNumberLong Integer Number of OwnersNumberLong Integer FIELD NAME DATA TYPE PROPERTIESVALIDATION RULE MileageNumberLong Integer>=0 Year MadeNumberInteger>=1990 AND <=2007 Number of Owners NumberByte>=1 AND <=10

Date Format Short Date19/12/06 Medium Date19-Dec-06 Long Date19 December 2006 Short Time17:34 Medium Time05:34 PM Long Time17:34:43

Date Format FIELD NAMEDATA TYPEPROPERTIES Date BoughtDate/TimeLong Date Date SoldDate/TimeLong Date FIELD NAME DATA TYPE PROPERTIESVALIDATION RULE Date BoughtDate/TimeShort Date>=01/01/05 Date SoldDate/TimeShort Date>=01/01/07

Homework

Advantages & Disadvantages For both designs write a list of advantages write a list of disadvantages For your chosen design explain why you chose it by summarising the advantages and disadvantages of the designs