Database Tables 2914. two order-entry scenarios: A customer wants to cancel an order that she's placed. If her address is in a separate table from her.

Slides:



Advertisements
Similar presentations
Database Relationships in Access As you recall, the data in a database is stored in tables. In a relational database like Access, you can have multiple.
Advertisements

Build a database I: Design tables for a new Access database
Microsoft® Access® 2010 Training
Microsoft ® Access ® 2010 Training Design the tables for a new database.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
CHAPTER OBJECTIVE: NORMALIZATION THE SNOWFLAKE SCHEMA.
MICROSOFT OFFICE ACCESS 2007.
Database Modeling IT Key Ideas, Dynamic Database Systems, 2002 Chapter 8.
Microsoft ® Office Acess 2003 Training An Intro Guide to Acess 2003 Mr Garel…… presents:
GCSE Computing#BristolMet Session Objectives# 21 MUST describe methods of validating data as it is input. SHOULD explain the use of key fields to connect.
Database Theory Why use database? Data is a valuable corporate resource which needs adequate accuracy, consistency and security controls. The centralized.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
Database table design Single table vs. multiple tables Sen Zhang.
Access A Relational Database Management System. Prof. Leighton2 Database ► A database is a collection of data that’s related to a particular topic ► A.
U:/msu/course/cse/103 Day 16, Slide 1 CSE 103 Day 16 Students: Read Day 10. If you are logged in, add records to your contacts.
Databases and Database Management Systems
Database Relationships Objective 5.01 Understand database tables used in business.
Entity Relationship Diagram Farrokh Alemi Ph.D. Francesco Loaiza, Ph.D. J.D. Vikas Arya.
Database Relationships Objective 5.01 Understand database tables used in business.
Relational Database Need to Knows. What is a database? Data - is just a pile of numbers or stats. A business "organises" the data to be meaningful and.
Database Applications – Microsoft Access Lesson 2 Modifying a Table and Creating a Form 45 slides in presentation Accessibility check 9/14.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Relational Database Concepts. Let’s start with a simple example of a database application Assume that you want to keep track of your clients’ names, addresses,
Databases Introduction. What is a Database? A DATABASE is a collection of related data. –Data is just another name for information.
Microsoft ® Office Access ® 2007 Training Build a database I: Design tables for a new Access database ICT Staff Development presents:
M Taimoor Khan Course Objectives 1) Basic Concepts 2) Tools 3) Database architecture and design 4) Flow of data (DFDs)
CORE 2: Information systems and Databases NORMALISING DATABASES.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
Access 2013 Microsoft Access 2013 is a database application that is ideal for gathering and understanding data that’s been collected on just about anything.
U:/msu/course/cse/103 Day 07, Slide 1 Day 15 Review What datatype would be an appropriate choice for: –A cell phone number.
Normalization Information Systems II Ioan Despi. Informal approach Building a database structure : A process of examining the data which is useful & necessary.
Copyright © 2005 Ed Lance Fundamentals of Relational Database Design By Ed Lance.
1 Outline  What is a Primary Key?  AutoNumber primary keys  Single-field primary keys  Composite-field primary key  About Foreign Keys  Database.
Database What is a database? A database is a collection of information that is typically organized so that it can easily be storing, managing and retrieving.
Databases. What is a database?  A database is used to store data. The word DATA is actually Latin for FACTS. A database is, therefore, a place, or thing.
DATABASE What exactly is a database How do databases work? What's the difference between a spreadsheet database and a "real" database?
FILES AND DATABASES. A FILE is a collection of records with similar characteristics, e.g: A Sales Ledger Stock Records A Price List Customer Records Files.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
M1G Introduction to Database Development 4. Improving the database design.
Microsoft ® Office Access 2003 Training Get to know Access CGI presents:
Databases.
Database: Relational Vs Flat File. Databases - Structure Flat file database, contains only one table Relational database, contains more than one table.
Maintaining a Database Access Project 3. 2 What is Database Maintenance ?  Maintaining a database means modifying the data to keep it up-to-date. This.
DAY 15: ACCESS CHAPTER 1 Rahul Kavi October 6,
ADVANTAGES OF DATA BASE MANAGEMENT SYSTEM. TO BE DICUSSED... Advantages of Database Management System  Controlling Data RedundancyControlling Data Redundancy.
CHAPTER 1 – INTRODUCTION TO ACCESS Aliya Farheen March 5, 2014.
Lesson 2: Designing a Database and Creating Tables.
Databases 101 © Dolinski What you will learn How relational databases work What are the components that make up a database How to create each component.
Data modeling Process. Copyright © CIST 2 Definition What is data modeling? –Identify the real world data that must be stored on the database –Design.
CSCI 6962: Server-side Design and Programming Shopping Carts and Databases.
Retele de senzori Curs 2 - 1st edition UNIVERSITATEA „ TRANSILVANIA ” DIN BRAŞOV FACULTATEA DE INGINERIE ELECTRICĂ ŞI ŞTIINŢA CALCULATOARELOR.
Database Planning Database Design Normalization.
Database Normalization. What is Normalization Normalization allows us to organize data so that it: Normalization allows us to organize data so that it:
Database Relationships
Databases: What they are and how they work
Prepared By: Bobby Wan Microsoft Access Prepared By: Bobby Wan
Databases.
Database Normalization
BASIC INFORMATION ABOUT DATABASE MANAGEMENT SOFTWARE
CIS 155 Table Relationship
Database Relationships
Databases A brief introduction….
Basic Concepts in Data Management
Teaching slides Chapter 8.
Relational Database Model
Database Relationships
Access: Database Design Participation Project
Give great customer service with Microsoft Dynamics CRM
Presentation transcript:

Database Tables 2914

two order-entry scenarios: A customer wants to cancel an order that she's placed. If her address is in a separate table from her order, you can easily delete the order without deleting her address. Or you've just entered a pile of customer orders when your company changes its shipping methods. If the shipping methods are maintained in their own table, you don't have to update each individual order. Access works with separate tables in relational databases, which can help you structure data efficiently, avoid wasted effort, and reduce headaches. Relational databases store data in separate tables, based on subject matter, but the tables are brought together through relationships. For example, a table of customers is related to a table of orders by a customer ID field in each of those tables. Typically, data should not be repeated in more than one table, except for such relating fields.

Why separate tables? Some benefits of this method are: Efficiency You don't have to store redundant information, such as a customer's name or address, in every order that the customer places. Control It's easier to update, delete, and extend data in a well-structured database that doesn't contain duplication. Accuracy By avoiding repetition, you decrease the opportunity for errors. Right once, right everywhere. Data integrity You can add or remove fields or records in unique tables without affecting your data structure, and you will not need to redesign your database. Separation protects your original structure. As you plan your tables, think of ways to structure your data so that it's easy to enter and maintain. Saved space.

Structure your tables to avoid duplication Here are some questions you can ask to help you better structure your data: Is each record unique or is a record repeated somewhere else? Are any details, or any groups of details, repeated in more than one record or table? Can you easily make changes to one record without changing another record? Does each record contain only the details that belong in that record, specifically appropriate to the record's identity? Are any fields dependent on other fields in the table?

Structure your tables to avoid duplication If tables are not designed with the optimal structure, some relations will suffer from undesirable consequences: losing data, having to update data in multiple places, or being unable to add new data. To see an example of how awkward organization can cause problems, consider the situation shown in the first table. Suppose you want to change the details for Exotic Liquids in your database. If you store supplier information such as the address in each record in the Products table, you'll have to modify each record there. By storing supplier information separately in its own Suppliers table, you can change the details just once, in that table. As the second table here shows, every product record that contains the Exotic Liquids Supplier ID number will refer to that updated information. Using the Supplier ID lets you remove supplier names and addresses from the Products table, avoiding duplicate information and a lot of unnecessary data maintenance. Keep in mind: The more sense your tables make to you now, the more sense they will make to you later, and the easier they will be to use in powerful ways.

Why separate tables? The Suppliers table contains all the contact information about those businesses. The Products table refers to the Suppliers table, but doesn't have to include all the suppliers'

Structure your tables to avoid duplication Redundant — supplier details included with each product. Efficient — supplier details in separate Suppliers table, with references from Products table.