DAY 12: DATABASE CONCEPT Tazin Afrin September 26, 2013 1.

Slides:



Advertisements
Similar presentations
Database Management3-1 L3 Database Management Santa R. Susarapu Ph.D. Student Virginia Commonwealth University.
Advertisements

©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
91.309/310 Database I & II Prof. Cindy Chen. What is a database? A database is a very large, integrated collection of data. A database management system.
Chapter 3 Database Management
Database Management System (DBMS)
Ch1: File Systems and Databases Hachim Haddouti
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Accounting Databases Chapter 2 The Crossroads of Accounting & IT
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction n Why Database Systems? n Data Models n Data Definition Language.
Chapter 4: Database Management. Databases Before the Use of Computers Data kept in books, ledgers, card files, folders, and file cabinets Long response.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
1 Chapter 2 Reviewing Tables and Queries. 2 Chapter Objectives Identify the steps required to develop an Access application Specify the characteristics.
Databases and Database Management Systems
Management Information Systems MS Access 2003 By: Mr. Imdadullah Lecturer, Department of M.I.S. College of Business Administration, KSU.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Computer Science & Engineering 2111 Introduction to Database Management Systems Relationships and Database Creation 1 CSE 2111 Introduction to Database.
Databases Creating databases to store information.
Database Lecture # 1 By Ubaid Ullah.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2012 (September 5, 2012)
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
Module Title? DBMS Introduction to Database Management System.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
DAY 14: ACCESS CHAPTER 1 Tazin Afrin October 03,
Database Technical Session By: Prof. Adarsh Patel.
Introduction to SQL Steve Perry
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
1 Database Concepts 2 Definition of a Database An organized Collection Of related records.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Introduction to Database using Microsoft Access 2013 Part 7 November 19, 2014.
1 Introduction to Oracle Chapter 1. 2 Before Databases Information was kept in files: Each field describes one piece of information about student Fields.
1 CSE 2337 Introduction to Data Management Access Book – Ch 1.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. Adding a new field 1Right click the table name and select design view 2Type the field information at the end.
Course FAQ’s I do not have any knowledge on SQL concepts or Database Testing. Will this course helps me to get through all the concepts? What kind of.
Constraints cis 407 Types of Constraints & Naming Key Constraints Unique Constraints Check Constraints Default Constraints Misc Rules and Defaults Triggers.
Advanced Accounting Information Systems Day 10 answers Organizing and Manipulating Data September 16, 2009.
Visual Programing SQL Overview Section 1.
INTRODUCTION lecture1 1. Data base concept Data is a meaningless static value. What does 3421 means? Information is the data you process in a manner that.
DAY 9: DATABASES Rohit September 21,
Use of ICT in Data Management AS Applied ICT. Back to Contents Back to Contents.
The relational model A data model (in general) : Integrated collection of concepts for describing data (data requirements). Relational model was introduced.
Mr.Prasad Sawant, MIT Pune India Introduction to DBMS.
© 2003 Prentice Hall, Inc.3-1 Chapter 3 Database Management Information Systems Today Leonard Jessup and Joseph Valacich.
Instructor: Pavlos Pavlikas1 How Data is Stored Chapter 8.
King saud university Introduction to Database Systems (Chapter 1: Databases and Database Users)
Relational Database Management System(RDBMS) Structured Query Language(SQL)
ASET 1 Amity School of Engineering & Technology B. Tech. (CSE/IT), III Semester Database Management Systems Jitendra Rajpurohit.
PREPARED BY: PN. SITI HADIJAH BINTI NORSANI. LEARNING OUTCOMES: Upon completion of this course, students should be able to: 1. Understand the structure.
SQL Introduction to database and SQL. Chapter 1: Databases and Database Users 6 Introduction to Databases Databases touch all aspects of our lives. Examples:
Chapter 1: Introduction. 1.2 Database Management System (DBMS) DBMS contains information about a particular enterprise Collection of interrelated data.
Lecture on Database Management System
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. A database is a collection of information organized to provide efficient retrieval. The collected information.
Database System Concepts Introduction Purpose of Database Systems View of Data Data Models Data Definition Language Data Manipulation Language Transaction.
DAY 9: DATABASES Rohit February 17,
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
CSCI-235 Micro-Computers in Science Databases. Database Concepts Data is any unorganized text, graphics, sounds, or videos A database is a collection.
CHAPTER 1: INTRODUCTION Purpose of Database Systems View of Data Data Models Data Definition Language Data Manipulation Language Storage Management Database.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
CHAPTER 7 DATABASE ACCESS THROUGH WEB
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 4 Relational Databases
Database Management  .
Introduction lecture1.
Chapter 8 Working with Databases and MySQL
Chapter 1: Introduction
DATABASE TECHNOLOGIES
INTRODUCTION A Database system is basically a computer based record keeping system. The collection of data, usually referred to as the database, contains.
Presentation transcript:

DAY 12: DATABASE CONCEPT Tazin Afrin September 26,

DATABASE An organized collection of data. Database supports processes requiring information about that data. Example : –Address book –Record of all employees of CNN international on their payroll 2

DBMS Database Management System contains information about a particular enterprise –Collection of interrelated data –Set of programs to access the data –An environment that is both convenient and efficient to use Examples of DBMS : –MySQL –SQLite –Microsoft SQL Server –Microsoft Access 3

DBMS Database Applications: –Banking: all transactions –Airlines: reservations, schedules –Universities: registration, grades –Sales: customers, products, purchases –Manufacturing: production, inventory, orders, supply chain –Human resources: employee records, salaries, tax deductions 4

RELATIONAL DATABASE A relational database is a collection of data items organized as a set of formally described tables from which data can be accessed easily. There are relationships between tables. Example : –Microsoft Access 5

SAMPLE RELATIONAL DATABASE 6

TERMINOLOGY Record –In the context of a relational database, a row—also called a record or tuple—represents a single, implicitly structured data item in a table. –Each record represents a set of related data –Every record has the same structure. Field –Each piece of data in a record is a field –Some fields are required for each record, others are optional 7

RECORDS AND FIELDS 8 Record Field

PRIMARY KEY A table typically has a column or combination of columns that contain values that uniquely identify each row in the table. This column, or columns, is called the primary key of the table. –A table can contain only one primary key constraint. 9

FOREIGN KEY A foreign key is a column or combination of columns that is used to establish and enforce a link between the data in two tables. It controls the data that can be stored in the another table. A link is created between two tables when the column that hold the primary key value for one table are referenced by the column in another table. This column becomes a foreign key in the second table. 10

FOREIGN KEY 11

FOREIGN KEY 12

INDEXES Indexes are an ordering of a key or other field that is computed on creation and kept up to date as the database is updated By using the index, the database software is able to quickly retrieve the record given the field value 13

RELATIONSHIPS By including a the key from one table as a field in a different table, we create a relationship between the two tables This allows us to link the data between two tables Relationships enable you to prevent redundant data. 4 kinds of relationships 14

RELATIONSHIPS 15 One to oneOne to many

RELATIONSHIPS 16 Many to oneMany to many

REFERENTIAL INTEGRITY Make sure that relationships between records in related tables are valid. Ensures that you do not accidentally delete or change related data. You cannot enter a value in the foreign key field of the related table that does not exist in the primary key of the primary table. –Cannot enter new account in the account table for a customer who does not exists. –But can enter new account with NULL value in customer ID 17

CASCADING You can specify whether you want to automatically cascade update or cascade delete related records from different tables. –Deletes: If the original record is deleted, the foreign key record is deleted –Updates: If the key of the original record is changed, the foreign key is updated to match 18

NORMALIZATION Normalization is a process of organizing fields and tables to minimize redundancy of data –DRY (don’t repeat yourself) –If you repeat yourself, when you need to make a change you have to change it everywhere or you will have problems 19

SQL SQL is structured query language SQL is how Access interacts with data under the hood Queries: –INSERT INTO ‘table’ VALUES (‘value1’, ‘value2’) –UPDATE ‘table’ SET ‘field1’ = ‘value1’ WHERE ‘field2’ = ‘value2’ –DELETE FROM ‘table’ WHERE ‘field’ = ‘value’ –SELECT ‘field1’ FROM ‘table’ WHERE ‘field2’ = ‘value’ 20

EXAM 1 Student ID is required If you need accommodations, please make your request today. Arrive 15 minutes early 10 minutes before scheduled class time, test instructions will be distributed You may begin at your scheduled class time You will have 60 minutes 21

EXAM 1 1 st October Section 58 : at 1:00 pm Section 60 : at 2:30 pm 22

THANK YOU LOG OFF