SJSU -- CmpE © 2003-2006 Dr. M. E. Fayad Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San.

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

Databases and Database Users
©Silberschatz, Korth and Sudarshan4.1Database System Concepts Lecture-1 Database system,CSE-313, P.B. Dr. M. A. Kashem Associate. Professor. CSE, DUET,
Introduction to Database Management  Department of Computer Science Northern Illinois University January 2001.
CS1001 Lecture 26. Overview Artificial Intelligence Artificial Intelligence Database Systems Database Systems.
History of Database Systems History of Database Systems File systems (before mid 1960s) Problems: Data redundancy update anomalies no abstract data model.
L16-S1 Object Diagrams 2003 SJSU -- CmpE Software Patterns Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
Introduction to Introduction to Database Systems Rose-Hulman Institute of Technology Curt Clifton.
Copyright © 2004 Pearson Education, Inc.. Chapter 1 Introduction and Conceptual Modeling.
Copyright © 2004 Pearson Education, Inc.. Chapter 1 Database Concepts.
Introduction to Databases Transparencies
© M.E. Fayad SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San José.
ICS (072)Database Systems Background Review 1 Database Systems Background Review Dr. Muhammad Shafique.
Chapter 1 INTRODUCTION TO DATABASE.
L5-S1 Class Diagrams 2003 SJSU -- CmpE Software Patterns Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 1.
Chapter 1 Introduction to Databases
Introduction and Conceptual Modeling
Chapter 1 Database and Database Users Dr. Bernard Chen Ph.D. University of Central Arkansas.
Introduction to Database Systems 1.  Assignments – 3 – 9%  Marked Lab – 5 – 10% + 2% (Bonus)  Marked Quiz – 3 – 6%  Mid term exams – 2 – (30%) 15%
Chapter 1 Database and Database Users Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 1 Outline Types of Databases and Database Applications Basic Definitions Typical DBMS Functionality.
Introduction to Data bases concepts
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 1 Chapter 1 - Introduction: Databases and Database Users - Outline Types of Databases and.
CSE314 Database Systems Lecture 1 Databases and Database Users Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
 Introduction Introduction  Purpose of Database SystemsPurpose of Database Systems  Levels of Abstraction Levels of Abstraction  Instances and Schemas.
Module Title? DBMS Introduction to Database Management System.
Database and Database Users. Outline Database Introduction An Example Characteristics of the Database Actors on the Scene Advantages of using the DBMS.
1 CSBP430 – Database Systems Chapter 1: Databases and Database Users Mamoun Awad College of Information Technology United Arab Emirates University
Database System Concepts and Architecture
Introduction: Databases and Database Users
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Databases and Database Users.
Course Introduction Ria Mae G. Corda ITB322 (Lecture) 2 nd Semeseter, AY
1Mr.Mohammed Abu Roqyah. Introduction and Conceptual Modeling 2Mr.Mohammed Abu Roqyah.
1 Welcome: To the second learning sequence “ Data Base (DB) and Data Base Management System (DBMS) “ Recap : In the previous learning sequence, we discussed.
Lecture On Introduction (DBMS) By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
Chapter 11 CS Introduction to Database Systems.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Chapter(1) Introduction and conceptual modeling. Basic definitions Data : know facts that can be recorded and have an implicit. Database: a collection.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Databases and Database Users.
1-1 Chapter 1 Databases and Database Users 1.1 Introduction 1.2 An Example 1.3 Characteristics of the Database Approach 1.4 Actors on the Scene 1.5 Workers.
CIS/SUSL1 Fundamentals of DBMS S.V. Priyan Head/Department of Computing & Information Systems.
DatabaseCSIE NUK1 Fundamentals of Database Systems Chapter 1 Database and Database Users.
1 Chapter 1 Introduction to Databases Transparencies.
Characteristics of the Database Approach (Difference between traditional file processing and database approach) Redundancy Self-Describing nature of a.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Databases and Database Users.
ISC321 Database Systems I Chapter 1: Introduction to Databases Fall 2015 Dr. Abdullah Almutairi.
Lecture On Introduction (DBMS) By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 1 Introduction: Databases and Database Users.
Computer Science Centre University of Indonesia Chapter 1 Database & Database Users.
Postgraduate Module Enterprise Database Systems Technological Educational Institution of Larisa in collaboration with Staffordshire University Larisa
Introduction: Databases and Database Systems Lecture # 1 June 19,2012 National University of Computer and Emerging Sciences.
L1-S1 Infinite R-DB 2003 SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San.
Chapter 1 Databases and Database Users. Overview Traditional database applications Store textual or numeric information Multimedia databases Store images,
What is a database? (a supplement, not a substitute for Chapter 1…) some slides copied/modified from text Collection of Data? Data vs. information Example:
1 Chapter (1) Basic Concepts Objectives Introducing the concept of database system Some examples Advantages of using DBMS Implication of the DB approach.
Chapter 1 Database and Database Users
Databases and Database Users
Introduction to DBMS Purpose of Database Systems View of Data
CS4222 Principles of Database System
Databases and Database Users
Outline Types of Databases and Database Applications Basic Definitions
“ Database (DB) and Database Management System (DBMS) “
Database and Database Users
9/22/2018.
Introduction to Database Systems
Introduction to DBMS Purpose of Database Systems View of Data
Database (DB) and Database Management System (DBMS)
Terms: Data: Database: Database Management System: INTRODUCTION
Presentation transcript:

SJSU -- CmpE © Dr. M. E. Fayad Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San José State University One Washington Square San José, CA

L1-S2 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad 2 Lesson 1: Infinite Relational Database

L1-S3 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad Lesson Objectives 3 Understand Infinite Relational Databases Explore the view level Understand the logical view Abstract Data Type

L1-S4 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad Data Abstraction- allows people to forget unimportant details –View Level – a way of presenting data to a –group of users –Logical Level – how data is understood to be when writing queries 4 Infinite Relational Databases

L1-S5 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad The highest level of data abstraction is the view level A view is a way of presenting data to a particular group of users. Data Presentation may depend on users preferences. Each view has to be functional for the users. This means that when designing a view we must keep in mind the functions to be preformed on the data. 5 The View Level

L1-S6 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad View level presentation of the data: Science, Art, or both (discussion) We will illustrate examples from different computer fields, such as computer graphics, for view level presentation of complex data, especially spatiotemporal data, such as realistic display of images and movies. 6 The View Level

L1-S7 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad Examples: –Charts –Graphs –Drawings –Maps –Video or Animation 7 The View Level Examples? What is a view? What is a model? What are the differences between a model and a view?

L1-S8 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad Example: Infinite relational data model Relation – table (Each table has a name and defines a relation) Relational scheme – top row / list of attributes (The top row of a table is called an attribute name) (The ordered set of attributes of a table is called a relation scheme.) Arity or dimension – number of attributes of a relation (We will use arity and dimension interchangeably with a preference for dimension in the case of spatiotemporal relations.) 8 The Logical Level

L1-S9 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad Example: Infinite relational data model Database schema – set of relation names and schemes Tuple / Point – each row below the scheme (we will use these two terms interchangeably with a preference for point in the case of spatiotemporal relations. Instance – the set of tuples in a table (Each row describes an instance of the scheme.) (Please remember a relation schemes are usually fixed while a relation instances may change over time due to database updates.) 9 The Logical Level

L1-S10 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad 10 Example (1) SSNWagesInterestCapital Gain ,0003, ,6402,8213, , ,200

L1-S11 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad Name the relations! What is arity of each relation? What is the relation scheme of each relation? What is the database scheme? How many tupls in each of the relation? How many instances of each of these relations? 11 Example (2)

L1-S12 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad T or F: Relation schemes are usually fixed Relation instances change with updates Example Scheme: Taxrecord(SSN,Wages,Interest,Capital_gain) Taxtable(Income,Tax) 12 Relation schemes & Instances (1)

L1-S13 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad Example: Streets(Name, X, Y ) Streets contains pairs of street names and (x,y) points such that the point belongs to the street. There are an infinite number of (x, y) locations associated with each street. Example: Crops(Corn,Rye,Sunflower, Wheat) Crops contains all possible combinations of four crops that a farmer could plant. There are an infinite number of tuples in any instance of this relation. Relation schemes & Instances (2)

L1-S14 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad  Other examples:  Temporal Data  Spatial Data  Operations Research 14 Infinite Relational Data Model

L1-S15 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad In many application areas of machine learning and data mining, researchers face challenges entailed by temporal and spatial data. What are the differences between temporal and spatial data? 15 Temporal & Spatial Data

L1-S16 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad 16 Temporal Data Type (1) The user-defined temporal data type is a time representation specially designed to meet the specific needs of the user. For example, the designers of a database used for class scheduling in a school might be based on a "Year:Term:Day:Period" format. Terms belonging to a user-defined temporal data type get the same query language support as do terms belonging to built-in temporal data types such as the DATE data type.

L1-S17 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad  A temporal database is a database that supports some aspect of time, not counting user-defined time. user-defined time 17 Temporal Databases

L1-S18 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad  The spatiotemporal is used to indicate that the modified concept concerns simultaneous support of some aspect of time and some aspect of space, in one or more dimensions. 18 Spatiotemporal

L1-S19 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad Domain – range of values for an attribute. – string, integers or real numbers Scalar Domain – always a single value – (ex: string, integer or real number) Abstract data type domains – composed of scalar domains. 19 Abstract Data Types (1)

L1-S20 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad Example: Vertices(Cities) The domain of Cities is a set of strings. Example: Streets(Name, Extent) The domain of Extent is a set of (x,y) points. 20 Abstract Data Types (2)

L1-S21 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad  A database is a collection of related data.  A database management system (DBMS) is a collection of programs that enables users to create and maintain a database.  A database system = database + DBMS 21 Database Glossary (1)

L1-S22 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad  A database can be of any size and of varying complexity.  IRS database  Assume there are a 100 million taxpayers  Each taxpayer file has an average of 5 forms.  Each form is approx. 200 chars  Assume also that IRS keeps the past three returns for each taxpayer?  What is the size of IRS’s database? (100*(10 6 )*200*5) = 4*(10 11 ) = 400 gigabytes 22 Database Glossary (2)

L1-S23 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad  Self-describing nature of a database system  Database contains the database itself, the definition or description of the database structure and constraints  The definition is stored in the system catalog which contains the information, such as structure of each file, the type and storage format of each data item, and various constraints on the data.  The information stored in the catalog is called meta-data. 23 Characteristics of the Database Approach

L1-S24 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad  Insulation between programs and data, and data abstraction  In OO databases users can define operations on data as part of the database definitions.  An operation is called a function is specified in two parts: the interface or signature and the implementation  Data abstraction 24 Characteristics of the Database Approach

L1-S25 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad  Support multiple views of the data  Dealing with Raw Data  Many users = different perspectives or views of the database.  Facilities for multiple views 25 Characteristics of the Database Approach

L1-S26 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad  Sharing of data and multiuser transaction processing  A multiuser DBMS must allow multiple users to access the database at the same time.  Concurrency control – to ensure that several users trying to update the same data do so in a controlled manner so that the result of the updates is correct. 26 Characteristics of the Database Approach

L1-S27 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad  Database administrators  Database designers  End users (casual end users, naïve or parametric end users, sophisticated end users, and stand-alone user  System analysts and application programmers or software engineers 27 Actors on the Scene

L1-S28 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad  DBMS system designers and implementers  Tool developers  Operators and maintenance personnel 28 Worker Behind the Scene

L1-S29 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad  Controlling redundancy  Redundancy is storing the same data multiple times that lead to several problems: 1.Duplication of effort 2.Waste of storage space 3.Inconsistent 29 Advantages of Using DBMS (1)

L1-S30 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad  Restricting unauthorized access  DBMS should provide a security and authorization mechanisms which specify account restrictions.  DBMS should enforce these restrictions automatically. 30 Advantages of Using DBMS (1)

L1-S31 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad  Providing persistent storage for program objects and data structures  In OO Database Systems, an object said to be persistent if it survives the execution of program execution and can be later retrieved by another program.  Compatibility – OODBs offer data structure compatible with one or more OO programming languages  Traditional DB systems often suffer from the so-called impedance or mismatch problem 31 Advantages of Using DBMS (1)

L1-S32 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad  Permitting inferencing and actions using rules  Some database systems provide capabilities for defining deduction rules for inferencing new information from the stored database facts.  Such systems are called deductive database systems. 32 Advantages of Using DBMS (1)

L1-S33 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad 33 Advantages of Using DBMS (2)  Providing multiple user interfaces  Representing complex relationships among data  Enforcing integrity constraints  Providing backup and recovery

L1-S34 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad  Potential enforcing standards  Reducing application development time  Flexibility  Availability of up-to-date information  Economics of Scale 34 Additional Advantages of Using DBMS (2)

L1-S35 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad T/F: a. A view is a way of presenting data to a particular group of users. b. Any relation can be presented by multiple views c. Arity = the number of columns in the relation. d. An instance = any row of a relation e. Spatial database is a database that supports some aspect of time, not counting f. Spatial data in the form of two- or three-dimensional images. g. Spatial data is any information about the location and shape of, and relationships among, geographic features. This includes remotely sensed data as well as map data. 35 Discussion Questions

L1-S36 Infinite R-DB © Dr. M. E. Fayad SJSU – CmpE M.E. Fayad Task 1: Data Modeling Using Entity- Relationship Model 36 Tasks for Next Lecture