Creating Tables Unit 9 - Databases.

Slides:



Advertisements
Similar presentations
Copyright © 2003 Pearson Education, Inc. Slide 8-1 The Web Wizards Guide to PHP by David Lash.
Advertisements

Organisation Of Data (1) Database Theory
Session 2Introduction to Database Technology Data Types and Table Creation.
Creating Tables, Setting Constraints, and Datatypes What is a constraint and why do we use it? What is a datatype? What does CHAR mean? Page 97 in Course.
Copyright © 2008 Pearson Prentice Hall. All rights reserved.1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2.1: Relational Databases.
Guidelines for Setting Field Properties Each field has a number of properties, such as its name and data type, that you can set when you define the field.
Benchmark Series Microsoft Excel 2013 Level 2
MS-Access XP Lesson 1. Introduction to MS-Access Database Management System Software (DBMS) Store data in databases Database is a collection of table.
Database Chapters.
Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
© Steven Alter, 2007, all rights reserved Database concepts Difference between a database and the Internet Reason for having a defined data structure Relational.
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Data Types and Field Properties 5.01 Understand database tables used in business.
Tables. Any database must contain one or more tables, because that’s where the data is stored. For any table there are two views provided: Datasheet view.
Data Types and Field Properties 5.01 Understand database tables used in business.
Data type – determines the type of data and range of values that can be entered in a field.
Creating a table in Access. Table Design Considerations Just as you first create a blueprint to build a house, you should first sketch or outline the.
Database terms Mr. Brunton.
Database Applications – Microsoft Access Lesson 2 Modifying a Table and Creating a Form 45 slides in presentation Accessibility check 9/14.
Microsoft Access 2000 Creating Tables and Relationships.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 4 – Creating New.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Access Tutorial 2 Building a Database and Defining Table Relationships
DAY 20: ACCESS CHAPTER 5 Tazin Afrin October 29,
 A database is a collection of data that is organized so that its contents can easily be accessed, managed, and updated. What is Database?
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.
1 ADVANCED MICROSOFT EXCEL Lesson 9 Applying Advanced Worksheets and Charts Options.
CHƯƠNG 3 Finding, Filtering, and Formatting Data.
Lesson 2.  To help ensure accurate data, rules that check entries against specified values can be applied to a field. A validation rule is applied to.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
Chapter 5: Data Types (2013) Revision Candidates should be able to know: Identify different data types? Key terms: File, record, field and key field Database.
DAY 22: MICROSOFT ACCESS – REVIEW Akhila Kondai November 04, 2013.
Microsoft Office 2013 ®® Access Tutorial 2 Building a Database and Defining Table Relationships.
11 3 / 12 CHAPTER Databases MIS105 Lec15 Irfan Ahmed Ilyas.
Using Microsoft Access 56:150 Information System Design.
WHAT IS A DATABASE? A DATABASE IS A COLLECTION OF DATA RELATED TO A PARTICULAR TOPIC OR PURPOSE OR TO PUT IT SIMPLY A GENERAL PURPOSE CONTAINER FOR STORING.
What have we learned?. What is a database? An organized collection of related data.
IE 423 – Design of Decision Support Systems Database development – Building Tables
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 3 BACKNEXTEND 3-1 LINKS TO OBJECTIVES Modify a Table – Add, Delete, Move Fields Modify a Table.
Advanced Web 2012 Lecture 3 Sean Costain What is a Database? Sean Costain 2012 A database is a structured way of dealing with structured information.
Relational Databases. Relational database  data stored in tables  must put data into the correct tables  define relationship between tables  primary.
Data Types and Field Properties 5.01 Understand database tables used in business.
Data Types and Field Properties continued… Understand database tables used in business.
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.
Relational Database Techniques
Lesson 4.  After a table has been created, you may need to modify it. You can make many changes to a table—or other database object—using its property.
Study Opportunities1 Database table quiz What is your name?
Mr C Johnston ICT Teacher
(Winter 2016) Instructor: Craig Duckett Lecture 13: Thursday, February 18 th Mere Mortals: Chap. 9 Summary, Team Work 1.
Ennis-Cole, AC 2.01, CECS Maintaining A Database By: Dr. Ennis-Cole.
Microsoft Access Prepared by the Academic Faculty Members of IT.
Sample template for portfolio - I would prefer to see you do something more original!
Edexcel OnCourse Databases Unit 9. Edexcel OnCourse Database Structure Presentation Unit 9Slide 2 What is a Database? Databases are everywhere! Student.
MICROSFTACCESS tables. DATA TYPES Field TypeWhat It Holds Short Text Text up to 255 characters long (including spaces and punctuation). Use a Text field,
F IELD P ROPERTIES 1 Characteristics that apply to each field in a table. Help ensure database accuracy and clarity Restrict the way data is entered, stored,
To play, start slide show and click on circle Access 1 Access 2 Access 3 Access 4 Access Access
2b. Create an Access Database Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis with Spreadsheets 1.
IGCSE 4 Cambridge Designing a database table Computer Science
Creating a database table
Microsoft Office Access 2010 Lab 2
Unit 16 – Database Systems
Creating a table in Access
Lecture 2 Lecturer: awdang aziz MS access
Presentation transcript:

Creating Tables Unit 9 - Databases

Planning Your Table Before you create the table you must plan: What fields you will include What the data-types of those fields will be What names to give them Which field to use as the primary key The range of acceptable values for each field This is important as changes may be difficult later You can plan a table design using a data dictionary Creating Tables Presentation Unit 9

Data-type Each field must have a data-type Choosing the correct data-type is important Helps ensure only valid data is entered Allows you to use features related to the data-type Commonly used data-types are: Text Number Date Yes/No Creating Tables Presentation Unit 9

Other Field Settings As well as setting the name and data-type of a field there are other settings you can make. Most of the settings are dependant on the data-type Typical settings you might change include: Field length Format (e.g. date format, 20/7/05 or 20th July 2005) Default value Validation rule Creating Tables Presentation Unit 9

Text Data-type Use where text or text combined with numbers will be stored in the field Also used to store numbers that don’t require calculations to be done (e.g. phone numbers) Default length is 50 characters, maximum length is 255 characters. For longer text use the Memo data-type No preset formats Creating Tables Presentation Unit 9

Numeric Data-type Field size Not set as a value (e.g. 10 digits) but as a method of storage This sets the range of values that can be stored Integer – range of minus 32,768 to plus 32,768 Long Integer - range of minus/plus 2 million Double stores very large real numbers. Format Allows formats such as Fixed number of decimals Scientific Percent Currency Creating Tables Presentation Unit 9

Auto-number Special numeric data-type Automatically set to long integer – don’t change it. Automatically incremented by 1 when a new record is created Ensures every record in a table has a unique value for this field Ideal for primary key fields BUT you cannot modify values in this field Creating Tables Presentation Unit 9

Date/time data-type Used to store dates and or times Will not allow input of invalid values (e.g. 32/7/05) Various preset formats Order of the day, month and year is set by Regional Settings in Control Panel. Default value can be a fixed date or the =Now() function will insert the current date when inserting new records. Creating Tables Presentation Unit 9

Example You are creating a database of secondary school student details and you want a field to hold the student’s age on the 1st September in the current year What data-type should you choose? What field length? Would a default value be a good idea? Are there any validation rules you could add? Creating Tables Presentation Unit 9

Example The data-type should be Numeric Field length should be Integer Default value is probably not a good idea here Validation rule could be added to restrict values to greater than 12 and less than 21 Creating Tables Presentation Unit 9

Data Dictionary Field name Data-type Field length Key? Format Default Validation rule Student number Auto-number Long integer Yes - Surname Text 50 No First Name Date of Birth Date Short date Gender 1 M or F Creating Tables Presentation Unit 9