IBS 520 Introduction to Internet Technology Database Fundamentals Week 4.

Slides:



Advertisements
Similar presentations
Microsoft Access 2 Database Creation and Management.
Advertisements

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.
Microsoft Office 2013 ®® Access Tutorial 2 Building a Database and Defining Table Relationships.
Access Tutorial 1 Creating a Database
Database Creation and Management
Designing Databases In database design, you determine the fields, tables, and relationships between tables that are needed to satisfy the users’ requirements.
Computer Science & Engineering 2111 Introduction to Database Systems 1CSE 2111-Introduction to Database Systems.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 3 1 Microsoft Office Access 2003 Tutorial 3 – Querying a Database.
BA271 Week 6 Lecture Database Overview Dave Sullivan.
Introduction to Databases CIS 5.2. Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
A Guide to SQL, Seventh Edition. Objectives Understand the concepts and terminology associated with relational databases Create and run SQL commands in.
Concepts of Database Management Sixth Edition
Database Design Concepts INFO1408 Term 2 week 1 Data validation and Referential integrity.
Querying a Database Microsoft Office Access 2003.
QUERYING A DATABASE By: Dr.Ennis-Cole. OBJECTIVES: Learn how to use the Query window in Design view Create, run and Save queries Define a relationship.
Define Table Relationships—1 of 3 One of the most powerful features of a relational database management system, such as Access, is its ability to define.
Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled.
DATA, DATABASES, AND QUERIES Managing Data in Relational Databases CS1100Microsoft Access - Introduction1.
Database Applications – Microsoft Access Lesson 2 Modifying a Table and Creating a Form 45 slides in presentation Accessibility check 9/14.
An INTRODUCTION to MICROSOFT ACESS 2000 By Dr. Ennis-Cole.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
Concepts of Database Management, Fifth Edition
1 Microsoft Access 2002 Tutorial 3 – Querying a Database.
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
Content Resource- Elamsari and Navathe, Fundamentals of Database Management systems.
Primary & Foreign Keys. PK & FK 1.Primary key is required 2.The PK must be unique 3.If the primary key from one table is related to a field in another.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Microsoft Access 2 Database Creation and Management.
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,
Learningcomputer.com SQL Server 2008 – Entity Relationships in a Database.
Concepts of Database Management, Fifth Edition Chapter 4: The Relational Model 3: Advanced Topics.
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
DATABASE DESIGN USING MICROSOFT ACCESS. What is a Database?  DMS Database management system  Database Collection of data organized in a manner that.
Microsoft Access – Tutorial 2 Designing Databases In this tutorial, we will create a new database create a new table import tables from an existing database.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
® Microsoft Access 2010 Tutorial 2 Building a Database and Defining Table Relationships.
Microsoft Office 2013 ®® Access Tutorial 2 Building a Database and Defining Table Relationships.
XP New Perspectives on Microsoft Access 2002 Tutorial 1 1 Microsoft Access 2002 Tutorial 1 – Introduction To Microsoft Access 2002.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
Computer Science & Engineering 2111 Lecture 10 Introduction to Database Management Systems 1.
Access Project 3 Notes. Introduction Maintaining the Database  Modifying the data to keep it up-to-date Restructure the Database  To change the database.
Microsoft Access Intro Class 6 Relationships.
SESSION 3.1 This section covers using the query window in design view to create a query and sorting & filtering data while in a datasheet view. Microsoft.
CSC 240 (Blum)1 Introduction to Data Entry, Queries and Reports.
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.
XP New Perspectives on Microsoft Access 2002 Tutorial 1 1 Microsoft Access 2002 Tutorial 1 – Introduction To Microsoft Access 2002.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
Microsoft Office XP Illustrated Introductory, Enhanced Tables and Queries Using.
1 CSE 2337 Introduction to Data Management Access Book – Ch 1.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
BA271 Week 6 Lecture Dave Sullivan. Goal for today… Status Report – Review where we are … Status Report – Review where we are … Begin learning about Microsoft.
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.
Database design Using Access 2007
Ennis-Cole, AC 2.01, CECS Maintaining A Database By: Dr. Ennis-Cole.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
Description and exemplification use of a Data Dictionary. A data dictionary is a catalogue of all data items in a system. The data dictionary stores details.
DAY 14: ACCESS CHAPTER 1 RAHUL KAVI October 8,
1 Microsoft Access 2002 Tutorial 2 – Creating And Maintaining A Database.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
Microsoft Access 2013 ®® Case Study Creating a Database.
New Perspectives on Microsoft Access 2016
New Perspectives on Microsoft Access 2016
Guidelines for Designing Databases
and Defining Table Relationships
Introduction to Database Systems
What is a Database and Why Use One?
Case Study Creating a Database
Presentation transcript:

IBS 520 Introduction to Internet Technology Database Fundamentals Week 4

Database Fundamentals A database is simply a structured collection of similar data. Databases display data in an imaginary two dimensional grid.

An Important Tutorial Prof Holowczak is one of the most valuable CIS Professors at Baruch College. All the Database instructors at Baruch College use his tutorials for their classes. Read the tutorial very carefully. The content of the tutorial will be sufficient for creating a basic database driven website /access/accessall.html

Relational Database Management Systems RDBMS is a software program that lets you create databases and then manipulate data in the databases. Data is organized in collection of tables. –Allows you to create database structures –It lets you easily add new records, change field values in existing records and delete records. –Contains built in query language –Contains built in report generator –Provides protection of databases.

Collection of Related Tables A collection of related tables is called a database or relational database. Sometimes you may want the information about Customers and orders they placed. To obtain this information you must have a way to connect records in the customer table to records in the order table. You connect the records in the separate tables through a common field that appears in both tables.

Primary Key Each customer number in Customer table must be unique, so that you can distinguish one customer from one another. The customer number field is the Primary Key of the Customer table. A Primary Key is a field or collection of fields whose values uniquely identify each record in a table. In the order table order number is the primary key.

Entity Integrity Access forces you to enter a value for the primary key field in every record in the table. This is known as entity integrity. If you do not enter a value for a field, you have actually given the field a null value. You cannot give a null value to the primary key field.

Foreign Key When you include the primary key from one table as a field in a second table to form a relationship between the two tables it is called a foreign key in the second table.

Guidelines for Designing a Database It is a useful tool but you need to carefully design the database. In database design you determine fields,tables, and relationships needed to satisfy the requirements.

1- Identify all the fields needed to produce the required information –Customer name –Order Number –Street –City –State –Zip Code –Customer Number –Billing date –Owner Name –Invoice amount –Placed by –Phone –First contact

2- Group related fields into tables CUSTOMER TABLE –Customer Number –Customer Name –Street –City –State –Zip Code –Owner name –Phone –First Contact ORDER TABLE –Order Number –Billing date –Placed by –Invoice Amount

3- Determine each tables primary key –Customer Number can be the primary key for the Customer Table –Order Number can be the primary key for the Order Table

4- Include a common field in related tables (Foreign Key) With this common field Barbara can find all the orders placed by a certain customers

Avoid Data Redundancy Data redundancy occurs when you store the same data in more than one place. With the exception of common fields to connect tables you should avoid redundancy –It wastes storage space –Can cause inconsistencies

5-Determine the Properties of Each Field These properties include –fieldname, – fields maximum number of characters, – fields description, – fields valid values –and other field characteristics.

Guidelines for Designing Access Tables A name can be up to 64 characters long A name cannot start with a space. A table or query name must be unique within a database. A name can contain letters, numbers, spaces and special characters except a period(.) exclamation mark(!) and square brackets []

Tips Capitalize the first letter of each word in the name –CustomerNum Avoid extremely long names Use standard abbreviations Num for Number Amt for Amount and Qty for Quantity Do not use spaces in field names

Assigning Field Data Types You must assign a data type for each field. The data type determines what field values you can enter for the field and what other properties the field will have. Billing date will store Date values so you assign Date/Time field value.

Field NameData TypeField SizeDescription OrderNumText3Primary Key CustomerNumTextForeign Key BillingDateDate/Time PlacedByTextPerson who placed order InvoiceAmtCurrency

Creating A Table Creating a table consists of : –Naming the fields and defining the properties for the fields. –Specifying a primary key (and a foreign key if applicable) for the table –Saving the table structure

Referential Integrity When you add a record to a related table, a matching record must already exist in the primary table.

Cascade Update If you attempt to change the value of the PK (Primary Key) in the primary table, Access prevents this change if matching records exist in the related table. However if you choose “Cascade Updates” option, Access permits the change in value to the PK and changes the appropriate FK values in the related table.

Cascade Delete Option When you delete a record in the Primary table, access prevents the deletion if matching records exist in a related table. However if you choose the cascade delete option, Access deletes the record in Primary table and all records in related tables that have matching FK values.

Introduction To Queries Querying a database –A query is a question that you ask about data stored in a database Display selected fields and records from a table Sort records Perform calculations Update data in the tables in a database Find and display data from two or more tables

Questions Which customers have unpaid bills? Which type of coffee sells in Ohio? The queries that ask for this information are called select queries.

Forms And Reports Refer to the tutorial.