8 June 201311 Single table database in normal form Fields and records Normal form 1.Header in the first line 2.Same content for every field 3.Each record.

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
SQL Lecture 10 Inst: Haya Sammaneh. Example Instance of Students Relation  Cardinality = 3, degree = 5, all rows distinct.
Mark Dixon Page 1 05 – Database Design: Sub-forms.
ISP 121 Access Normalization and Relationships. Normalization Say we’re operating a pet day-care and we need to keep information on our pets/customers.
Normalization Queries (contd)
From Class Diagrams to Databases. So far we have considered “objects” Objects have attributes Objects have operations Attributes are the things you record.
Accounting Databases Chapter 2 The Crossroads of Accounting & IT
FIRST COURSE Access Tutorial 2 Building a Database and Defining Table Relationships.
“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.
Relational Databases What is a relational database? What would we use one for? What do they look like? How can we describe them? How can you create one?
File and Database Design; Logic Modeling Class 24.
Database Relationships Objective 5.01 Understand database tables used in business.
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.
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
Microsoft ® Office Access ® 2007 Training Build a database III: Build relationships for a new Access database ICT Staff Development presents:
Chapter 5 UNDERSTANDING AND DESIGNING ACCOUNTING DATA.
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.
© Paradigm Publishing, Inc Access 2010 Level 2 Unit 1Advanced Tables, Relationships, Queries, and Forms Chapter 2Building Relationships and Lookup.
Page 1 ISMT E-120 Desktop Applications for Managers Introduction to Microsoft Access.
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
2.3 Organising Data for Effective Retrieval
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,
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
Driving School Database
Data Modelling – ERD Entity Relationship Diagram’s Entity Relationship Diagrams and how to create them. 1.
Concepts and Terminology Introduction to Database.
Concepts of Database Management Seventh Edition Chapter 4 Keys and Relationship.
10 May Microsoft Access 2010 Relational databases’ program Part of the Microsoft Office package Administer relational database Update database through.
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
In this chapter, you learn about the following: ❑ Anomalies ❑ Dependency and determinants ❑ Normalization ❑ A layman’s method of understanding normalization.
PHP and MySQL CS How Web Site Architectures Work  User’s browser sends HTTP request.  The request may be a form where the action is to call PHP.
Office Management Tools II Ms Saima Gul.  When you create your tables, you should assign each table a primary key—one or more fields whose contents are.
5 Aug Microsoft Access 2010 Relational databases’ program Part of the Microsoft Office package Administer relational database Update database through.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
1 n 1 n 1 1 n n Schema for part of a business application relational database.
Copyright © 2005 Ed Lance Fundamentals of Relational Database Design By Ed Lance.
Access Chapter 2: Relational Database Objectives Design data Create tables Understand table relationships Understand data types, key, & field properties.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
Chapter 12: Designing Databases
M1G Introduction to Database Development 2. Creating a Database.
Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities.
Relational Database. Database Management System (DBMS)
Microsoft Access Intro Class 6 Relationships.
Part II. Query Types On the design query table pane, right click and the cascading window will appear.
The Digital Archive Database Tool Shih Lin Computing Center Academia Sinica.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 2 BACKNEXTEND 2-1 LINKS TO OBJECTIVES Creating Related Tables Creating Related Tables Determining.
Introduction to Database using Microsoft Access 2013 Part 7 November 19, 2014.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. Adding a new field 1Right click the table name and select design view 2Type the field information at the end.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
1 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Advanced Database Concepts INFO/CSE.
1 MS Access. 2 Database – collection of related data Relational Database Management System (RDBMS) – software that uses related data stored in different.
Work with Tables and Database Records Lesson 3. NAVIGATING AMONG RECORDS Access users who prefer using the keyboard to navigate records can press keys.
3 1 Chapter 3 The Relational Database Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Database Relationships Objective 5.01 Understand database tables used in business.
Access Module Implementing a Database with Microsoft Access A Great Module on Your CD.
Teanna Clarke 6aQ What is a Entity-Relationship Diagram?  An Entity-Relationship Diagram (ERD) is a tool that graphically shows the connections among.
Logical Database Design and Relational Data Model Muhammad Nasir
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Microsoft ® Office 2007 PowerPoint Lecture to Accompany.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
CIS 155 Table Relationship
INFO/CSE 100, Spring 2005 Fluency in Information Technology
Database Design Hacettepe University
Advanced Database Concepts: Reports & Views
Non-selection queries
Presentation transcript:

8 June Single table database in normal form Fields and records Normal form 1.Header in the first line 2.Same content for every field 3.Each record refers to a single object 4.Records are independent 5.Records and fields order does not matter 6.No field which can be calculated

8 June Relational database Primary key ID Problems of single table databases information redundancy  relation empty fields Relational database is “a collection of structured tables connected via relations” Foreign key Field A of table 1 is related to field B of table 2 “one to many” or “many to one”: University courses

8 June Relational database “one to one”: Countries and flags “many to many” relation junction table: Houses property, Students exams joining several tables: car’s parts details table foreign key with more than one relation Temporal vs static databases

8 June Relational database Modeling other structures Hierarchical Process Orphan records and referential integrity 4

Design a database 8 June Read and understand read 3 times the description and have a very clear idea of the practical situation External tables start with the external tables, the ones which are the pillars of the database. Usually these are identified by things which rarely change, such as people, places, objects. These are often evident from the database's description

Design a database 8 June Relations decide which relation these tables have among themselves, check that the relations that you decide are logical (according to real situation) and are compliant with database's description now build the appropriate relations (inserting, if it is necessary, foreign keys) or insert appropriate junction tables Relations check 1.one-to-many and many-to-one properly oriented 2.no relation is one-to-one 3.many-to-many  junction tables and eventually details table, 4.“1” side is really a “1” side and does not instead need a many-to- many relation

Design a database 8 June Check check again that the database is compliant with the requests and that all the relations make sense check also that the database is able to satisfy the final question (probably you'll have to add fields) Fields put all the fields' types and requested options write a description of the not obvious fields Queries write the requested queries, avoiding to use fields that you do not have. Justify every non-standard choice you take

8 June Home exercises: Your library  It is a database of your books and their authors. ◦ Suppose that each book has only one author. ◦ Typical fields may be title, number of pages, genre, language, price, publishing year, edition, author's name, surname, nationality, date of birth.  Think at the content! ◦ Books ◦ Authors  Think at the structure! ◦ Many to one relation  Draw the schema!

8 June  It is a temporal database which handles data regarding students and their exams and lecturers ◦ Typical fields may be exam’s name, semester, credits, language, and student’s first name, last name, enrolment year, degree course, student number.  Think at the content! ◦ Students ◦ Exams ◦ Professors  Think at the structure! ◦ Many to many relation  you need two extra tables  Draw the schema! Home exercise: students, exams and lecturers