Databases Introduction - concepts. Concepts of Relational Databases.

Slides:



Advertisements
Similar presentations
DB glossary (focus on typical SQL RDBMS, not XQuery or SPARQL)
Advertisements

The Relational Model and Relational Algebra Nothing is so practical as a good theory Kurt Lewin, 1945.
Relational Database. Relational database: a set of relations Relation: made up of 2 parts: − Schema : specifies the name of relations, plus name and type.
Normalization What is it?
Accounting System Design
Relational Databases Chapter 4.
A Practical Introduction to Transactional Database Modeling and Design Mike Burr.
Midterm Review Lecture 14b. 14 Lectures So Far 1.Introduction 2.The Relational Model 3.Disks and Files 4.Relational Algebra 5.File Org, Indexes 6.Relational.
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
Chapter 3. 2 Chapter 3 - Objectives Terminology of relational model. Terminology of relational model. How tables are used to represent data. How tables.
Boyce-Codd Normal Form Kelvin Nishikawa SE157a-03 Fall 2006 Kelvin Nishikawa SE157a-03 Fall 2006.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
Murali Mani SQL DDL and Oracle utilities. Murali Mani Datatypes in SQL INT (or) INTEGER FLOAT (or) REAL DECIMAL (n, m) CHAR (n) VARCHAR (n) DATE, TIME.
SQL DDL constraints Restrictions on the columns and tables 1SQL DDL Constraints.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Terms - data,information, file record, table, row, column, transaction, concurrency Concepts - data integrity, data redundancy, Type of databases – single-user,
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Transforming Data Models into Database Designs
Database Design & ER Diagrams
Chapter 14 & 15 Conceptual & Logical Database Design Methodology
SQL Basics. SQL SQL (Structured Query Language) is a special-purpose programming language designed from managing data in relational database management.
Database Lecture # 1 By Ubaid Ullah.
Lecture 2 The Relational Model. Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical relations.
© Pearson Education Limited, Chapter 2 The Relational Model Transparencies.
Chapter 3 The Relational Model Transparencies Last Updated: Pebruari 2011 By M. Arief
Chapters 17 & 18 Physical Database Design Methodology.
SQL Normalization Database Design Lecture 5. Copyright 2006Page 2 SQL Normalization Database Design 1 st Normal Form 1 st Normal Form 2 nd Normal Form.
Database Technical Session By: Prof. Adarsh Patel.
Relational Database Management Systems. A set of programs to manage one or more databases Provides means for: Accessing the data Inserting, updating and.
FEN  Concepts and terminology  Operations (relational algebra)  Integrity constraints The relational model.
Module 3: The Relational Model.  Overview Terminology Relational Data Structure Mathematical Relations Database Relations Relational Keys Relational.
Lecture 7 Integrity & Veracity UFCE8K-15-M: Data Management.
Component 4: Introduction to Information and Computer Science Unit 6: Databases and SQL Lecture 4 This material was developed by Oregon Health & Science.
RDBMS Concepts/ Session 3 / 1 of 22 Objectives  In this lesson, you will learn to:  Describe data redundancy  Describe the first, second, and third.
Normalization (Codd, 1972) Practical Information For Real World Database Design.
Databases and Statistical Databases Session 4 Mark Viney Australian Bureau of Statistics 5 June 2007.
MS Access: Creating Relational Databases Instructor: Vicki Weidler Assistant: Joaquin Obieta.
Relational Database. Database Management System (DBMS)
FEN Introduction to the database field:  The Relational Model Seminar: Introduction to relational databases.
SQL: DDL. SQL Statements DDL - data definition language –Defining and modifying data structures (metadata): database, tables, views, etc. DML - data manipulation.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
Database Review Terminology Concepts SQL syntax. Analysis Terms Term/Concept Definition or Example Relational Model? Relation Instance? Relation Schema?
Databases Shortfalls of file management systems Structure of a database Database administration Database Management system Hierarchical Databases Network.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 7 (Part a): Introduction to SQL Modern Database Management 9 th Edition Jeffrey A.
Component 4/Unit 6d Topic IV: Design a simple relational database using data modeling and normalization Description and Information Gathering Data Model.
DBSQL 5-1 Copyright © Genetic Computer School 2009 Chapter 5 Structured Query Language.
In this session, you will learn to: Describe data redundancy Describe the first, second, and third normal forms Describe the Boyce-Codd Normal Form Appreciate.
Chapter 2 Introduction to Relational Model. Example of a Relation attributes (or columns) tuples (or rows) Introduction to Relational Model 2.
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
The Relational Model. 2 Relational Model Terminology u A relation is a table with columns and rows. –Only applies to logical structure of the database,
CS34311 The Relational Model. cs34312 Why Relational Model? Currently the most widely used Vendors: Oracle, Microsoft, IBM Older models still used IBM’s.
Logical Database Design and the Relational Model.
Relational Database Management System(RDBMS) Structured Query Language(SQL)
Chapter 3: Relational Databases
IST 220 – Intro to DB Lecture 4 Database Design thru ER Modeling.
Chapter 3 The Relational Model. Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between mathematical.
FEN Introduction to the database field: The development process Seminar: Introduction to relational databases Development process: Analyse.
NORMALIZATION Handout - 4 DBMS. What is Normalization? The process of grouping data elements into tables in a way that simplifies retrieval, reduces data.
Logical Database Design and Relational Data Model Muhammad Nasir
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
September 2000C.Watters1 Data & Database Management Systems (DBMS) ECMM6010.
CENG 351 File Structures and Data Management1 Relational Model Chapter 3.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
Normalization Karolina muszyńska
Quiz Questions Q.1 An entity set that does not have sufficient attributes to form a primary key is a (A) strong entity set. (B) weak entity set. (C) simple.
Chapter 4 Relational Databases
בסיסי נתונים - מצגת ההרצאה - 1.
Database Design: Relational Model
DATABASE Purpose of database
Presentation transcript:

Databases Introduction - concepts

Concepts of Relational Databases

Domain definitions

Example

Catch Up Relationtablefile Attributecolumnfield Tuplerowrecord Domain Cardinality Candidate key primary keyforeign key Null Entity integrity (row have a primary key) Referential integrity ()

Entity Integrity Normal forms – 1,2,3 NF – Boyce-codd – 4,5 NF

1 st Normal Form The first normal form (1NF) is all about eliminating repeating groups of data Guaranteeing atomicity (the data is self- contained and independent). At a high level, it works by creating a primary key In short: primary key + no double values

2 nd Normal Form The table must be in 1NF Each column must depend on the whole key i.e. only relevant for combined keys part of columns can not be dependent of only a part of the key In short: 1NF + all values(attributes) are pointed out by the whole key

3 rd Normal Form The table must be in 2NF No column can have any dependency on any other non-key column You cannot have derived data In short: 2NF + all values(attributes) can only be pointed out by the whole key

Referential Integrity Constraints on foreign key’s – On Delete – No Action, Null(0-*), Default, Cascade(composite / 1-*) – On Update – No Action, Null, Default, Cascade – See more:

Structured Query Language Data Definition Language (DDL) or data description language – Define tables, relations, triggers, stored procedures, user datatype etc. Data Manipulation Language (DML) – Request data (select) – Update data (insert, update, delete)

Select (Read) Select (columns | *) – From table (combination of tables = join) – Where only some values select * from scouts select id,name from scouts select id,name from scouts where 1<id AND id<10 select * from scouts where 1<id AND id<10 select * from scouts where id between 1 AND 10