Database: Introduction
|
|
- Aldous Harrell
- 6 years ago
- Views:
Transcription
1 Database: Introduction Database Systems Important topic in the study of information systems Store/track items: scalar data (names, dates, ), pictures, audio, video Early applications: internal uses Internet: publishing database content to users Database design and development Understand, gather and organize user requirements Transform the designs into physical databases (applications) 1 2 What is a Database System? Description of System requirements An electronic filing cabinet A collection of data which h is: Integrated Collect/unify data from a number of different sources Shared Access by more than one person/application Advantages: Data is shared, redundancy can be reduced, and integrity maintained 3 Data analysis Look for entities, relationships and attributes ER Data model Data design Convert ER model (with cardinalities) into table definitions Logical Data model Physical Database bse design Choose appropriate p column types and constraints Physical Dt Data model dl 4
2 Elements of Entity-Relationship Model Entities, attributes, identifiers, and relationships Entity: Thing or object, whether real or imagined, about which information needs to be known/tracked Example: A customer called Peter Lam is an entity Entity can be Weak entity: existence-dependent on other entities Parent and child Strong entity: non-dependent on other entities Elements of Entity-Relationship Model: Entity Entity class/type: A collection that share CUSTOMER entity class contains: ti common properties or CustID characteristics FirstName UPPER CASE (noun) LastName Entity instance: phoneno Representation of a particular entity Two instances: Many instances in an entity class 1 Peter Lam Jenny Chan Elements of Entity-Relationship Model: Attributes Attributes: attribute Properties Value of the describe the entity s characteristics attribute phoneno CustID FirstName LastName phoneno An entity instance 1 Peter Lam Jenny Chan Elements of Entity-Relationship Model: Relationships Describes how one or more entities are related to each other Entity: noun, relationship: verb Binary Relationships (degree 2) Degree 3 relationships CUSTOMER EXAM CONTASS places attends determines ER Diagram ORDER SUBJECT GRADE 8
3 Types of Binary Relationship One-to-one one (1:1) One to many (1:N) Many to many (N:M) PROJECT GROUP PROJECT SUBJECT is_assigned_toi 1:1 is_assigned_to 1:N N:M enrolled 9 Relationship Maximum cardinality: The maximum number of entities that can occur on one side of the relationship 1:N, if a group project involves at most 3 students ts Maximum cardinality: 1:3 Minimum i cardinality: Indicates whether participation in the relationship is mandatory or optional 0: optional, 1: mandatory 10 Relationship is_assigned_toi PROJECT 1 1:1 0 Relationship is_assigned_to GROUP PROJECT 1 1N 1:N 0 entity optional Relationship Number entity involved One project May be Assigned dto One Student t One Student Must be Assigned one project entity optional Relationship Number involved Group project Student t entity Student project 11 12
4 SUBJECT Relationship 1 N:M 1 enrolled entity optional Relationship Number entity involved subject Student Student subject Attributes? 13 Example 1 Project: Project title (ProjTitle), Project ID (ProjID) and Budget (ProjBudget) Student: Year of study (YearStudy), Student Number (StudNo), First Name (FirstName) and Last Name (LastName) Relationship: A project might be assigned to one student A student must be assigned one project 14 Example 2 An order must contain at least one product. A product might not associate with any order An order consists of an order number as well as an order date The product name and its description will be listed out Also, the quantity of a particular product will be listed as well. Example 3 A subject must have at least one student enrolled A student must enroll at least one subject A subject has a title as well as a subject code A student has a student number, first name and last name The enrollment date should be recorded 15 16
5 Binary Relationships Entitles tables Subject table Two columns: subcode, title One-to-one one binary relationship Primary key on one side (mandatory side) becomes a foreign key on the other side (optional side) Both mandatory: place on one side only One side mandatory, one side optional: place on optional side 17 Design 1 Rule 1 is_assigned_to PROJECT 1:1 PROJECT ProjID title name studno ProjID firstname lastname Go from Student to Project use studno to obtain a student s row in obtain ProjID assigned to studno use this ProjID to look up the data in PROJECT 18 Design 2 Rule 1 PROJECT is_assigned_to 1:1 PROJECT ProjID title name studno studno firstname lastname Go from Project to Student use projid to obtain a project s row in PROJECT obtain studno assigned to projid use this studno to look up the student info in Rule 1 Both side mandatory: One project must assign to one student One student must be assigned one project Design 1 and design 2 are conceptually the same Might be different in performance Query in one direction is more common than query in the other direction One side mandatory, one side optional? A student must be assigned one project A particular project may not be assigned to any student Design 1: looks ok Design 2: null value Design 1 is preferable 19 20
6 Rule 2 One-to-many binary relationship GROUP PROJECT Key on parent: placed in child Cf: one-to-one relationship is_assigned_to GROUP PROJECT 1 1:N 0 ProjID title name studno ProjID firstname lastname Rule 3 many-to-many binary relationship Cannot be directly represented by relations as one-to-one or one-to-many cases Reason SUBJECT entity: {subcode, name} entity: {studno, firstname, lastname} Multiple values for Many-to-many relationship! SUBJECT 1 N:M 1 enrolled Rule 3 many-to-many binary relationship Create a new relation with primary keys of the two entities as its primary key Intersection relations Many-to-Many Relationship title Associative entities: SUBJECT enrolled 1 N:M 1 studno SUBJECT Subcode name studno firstname lastname SUBJECT- studno SubID code lastname dateenrolled firstname SUBJECT code title Natural? studno firstname lastname 23 SUBJECT- studno code dateenrolled 24
7 Many-to-Many Relationship Associative entities: SUBJECT code title studno firstname lastname SUBJECT- refno studno code dateenrolled Many-to-Many y Relationship Order: unique orderid and date Products: prodid, name, description Each order can include more than one product orderid orderdate ORDER contains 0 M:N 1 qty prodid PRODUCT prodname proddes Ternary Relationships CUSTOMER, SALESPERSON, ORDER Each order involves one and only one customer A customer can have many orders One order has one and only one sales A sales has many orders Ternary Relationship Further constraint? Each customer can place orders only with a particular salesperson Business rule Need to be documented 27 28
8 Relational Terminologies Pim Primary Key An attribute (or combination or attributes) that uniquely identifies a row in a relation Candidate Key Attribute that can be chosen to be the primary key Composite Key A primary key that t consists of more than one attribute Foreign Key An attribute in a relation that serves as the primary key of another relation Normalization Process for evaluating and converting a relation to reduce modification anomalies (undesirable consequence n of a data modification) Detects and eliminates data redundancy d Well structure relations should avoid Insertion anomaly Deletion anomaly Modification anomaly Example for Normal Forms Project Assignment: One project: assigned to a no of depts Unnormalized form: all information together ProjID Title DeptNo DeptName Locaton NoStaff HourChg ExChg Hours 123 A 12 Engineering China A 40 HRO HK A 70 Finance HK B 12 Engineering China B 70 Finance HK C 14 Purchase Taiwan D 70 Finance HK E 12 Engineering China E 70 Finance HK F 58 Sales China First Normal Form 1NF: A relation must have only single-valued attributes No repeating groups PROJECT entity: ProjID, DeptNo Title, DeptName, Location, NoStaff, HourChg, ExChg, Hours May have modification anomalies A new dept added? Delete ProjID 577? 32
9 1NF ProjID DeptNo Title DeptName Locaton NoStaff HourChg ExChg Hours A Engineering China A HRO HK A Finance HK B Engineering China B Finance HK C Purchase Taiwan D Finance HK E Engineering China E Finance HK F Sales China Key: {ProjID, DeptNo} 33 Second Normal Form 2NF: A relation must be in 1 NF and each non- key attribute must be dependent on the whole key To remove data which h is functionally dependent upon only part of a key and To place this data to a new relation, with that part of the key as the primary key 34 Second Normal Form PROJECT entity: Key: {ProjID, DeptNo} Title, DeptName, Location, NoStaffInv, HourChg, ExChg, Hours Dependency: ProjID Title DeptNo DeptName, Location, HourChg, ExChg {ProjID, DeptNo} NoStaffInv, Hours Split up Relations Second Normal Form: Answer PROJECT entity: ProjID, Title DEPT entity DeptNo, DeptName, Location, HourChg, ExChg ASSINMENT entity ProjID, DeptNo, NoStaffInv, Hours 35 36
10 ASSINMENT entity ProjID DeptNo NoStaff Hours NF PROJECT entity ProjID Title 123 A 234 B 345 C D E F DeptNo DeptName Locaton HourChg ExChg 12 Engineering China HRO HK 50 0 DEPT entity 70 Finance HK Purchase Taiwan Sales China Second Normal Form Problem: ExChg depends on Location If Location= HK, no ExChg If Location= China, ExChg = 20 If Location = Taiwan, ExChg = 40 Example: Delete deptno=14, deletion anomaly Third Normal Form 3NF: A relation must be in 2 NF and no transitive dependencies may exist A functional dependency between two or more non-key attributes DeptNo Location, ExChg Location ExChg ExChg depends on non-key attribute Location Solution: split relation Third Normal Form: Answer PROJECT entity: ProjID, Title DEPT entity DeptNo, DeptName, Location, HourChg EXTRACHARGE entity: y Location, ExChg ASSINMENT entity ProjID, DeptNo, NoStaffInv, Hours 39 40
11 ASSINMENT entity ProjID DeptNo NoStaff Hours NF EXTRACHARGE entity Location ExChg China 20 HK 0 Taiwan 40 PROJECT entity ProjID Title 123 A 234 B 345 C 456 D 567 E 577 F DeptNo DeptName Locaton HourChg 12 Engineering China HRO HK 50 DEPT entity 70 Finance HK Purchase Taiwan Sales China 60 Normalization vs Denormalization Normalization: Avoid modification anomalies Split relations Extra processing Might not be desirable Denormalization: control data redundancy to improve performance Example Assume one HoD, one to three Deputy HoD Un/De-normalized relation 1: DEPT (DeptName, HOD, DeputyHoD) Key: {DeptName, DeptyHoD} Not in : DeptName HoD Normalized DEPT (DeptName, HOD) DepHOD (DeptName, DeputyHOD) Example In 2NF: Not efficient: obtain data about dept, need to read at least 2 rows and as many as 4 rows Alternative DEPT (DeptName, HOD, DeHOD1, DeHOD2, DeHOD3) Key: DeptName In All attributes are functionally dependent on DeptName Problem: search the name of the DeHoD 43 44
12 SQL DBMS Access: Microsoft product Windows platform Easy to use: user-interface Small companies, personal uses MySQL server: Popular: available for windows, Linux, Unix Multiuser Multithread: Enable database to perform multiple tasks concurrently Increase server efficiency in handling client request Can handle large databases (tens of thousands of tables) (nearly) open source Graphical mode Graphical mode 47 48
13 MySQL Output format: table form Case insensitive i i Semi-colon: line ends 49 Data Definition Language Create database Create tables mysql> create database ABCpharmacy -> -> ; Query OK, 1 row affected (0.00 sec) mysql> use ABCpharmacy Database changed mysql> show tables; Empty set ( sec) mysql> DROP DATABASE db_name; 50 Data Definition Language Create tables Create table tablename (DEFINITION) DEFINITION: Col_name type [NOT NULL NULL] [PRIMARY KEY] INT: integer DOUBLE: floating-point number DECIMAL [M,D]: stores the digits in bytes: M: max display size, D: max decimals Char(M): fixed string: always occupying M bytes VARCHAR(M): variable length occupying at most M+1 bytes ENUM ( val1, val2, ) a string taken from a fixed set of values Color ENUM ( red, orange, yellow, green, blue, purple ) DESCRIBE tablename DROP TABLE tablename 51 52
14 DDL Text File Data Definition Language The text file must be tab-delimited Foreign key? Alter table table1name ADD FOREIGN KEY (columnname) REFERENCES table2name(columnname) Eg E.g., Alter table orderinfo add foreign key (custname) references customer (name); 55 56
15 Data Manipulation Language DML commands: Querying DB: SELECT SQL: querying tables Statements written in multiple lines Reserved words: in capital letters Conventions: provide clarity Do not required by compilers SELECT statement: retrieval SELECT <list of column expressions> FROM <list of tables and join operations> WHERE <list of logical expressions for rows> GROUP BY <list of grouping columns> HAVING <list of logical expressions for groups> ORDER BY <list of sorting specifications> Revision ER diagram Table design Normalization Denormalization n SQL Summary 59
Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 4 Entity Relationship (ER) Modeling Objectives In this chapter, students will learn: The main characteristics of entity relationship
More informationDatabase Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams
Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 7 Data Modeling with Entity Relationship Diagrams Objectives In this chapter, students will learn: The
More informationVendor: CIW. Exam Code: 1D Exam Name: CIW v5 Database Design Specialist. Version: Demo
Vendor: CIW Exam Code: 1D0-541 Exam Name: CIW v5 Database Design Specialist Version: Demo QUESTION: 1 With regard to databases, what is normalization? A. The process of reducing the cardinality of a relation
More informationDistributed Database Systems By Syed Bakhtawar Shah Abid Lecturer in Computer Science
Distributed Database Systems By Syed Bakhtawar Shah Abid Lecturer in Computer Science 1 Distributed Database Systems Basic concepts and Definitions Data Collection of facts and figures concerning an object
More informationDatabase Systems: Design, Implementation, and Management Tenth Edition. Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 4 Entity Relationship (ER) Modeling 4.1 The Entity Relationship Model (ERM) ER model forms the basis of an ER diagram ERD
More informationThe DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data.
Managing Data Data storage tool must provide the following features: Data definition (data structuring) Data entry (to add new data) Data editing (to change existing data) Querying (a means of extracting
More information8) A top-to-bottom relationship among the items in a database is established by a
MULTIPLE CHOICE QUESTIONS IN DBMS (unit-1 to unit-4) 1) ER model is used in phase a) conceptual database b) schema refinement c) physical refinement d) applications and security 2) The ER model is relevant
More informationConceptual Database Design. COSC 304 Introduction to Database Systems. Entity-Relationship Modeling. Entity-Relationship Modeling
COSC 304 Introduction to Database Systems Entity-Relationship Modeling Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Conceptual Database Design Conceptual database design
More informationCOSC 304 Introduction to Database Systems. Entity-Relationship Modeling
COSC 304 Introduction to Database Systems Entity-Relationship Modeling Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Conceptual Database Design Conceptual database design
More information1D0-541_formatted. Number: Passing Score: 800 Time Limit: 120 min File Version: 1.
1D0-541_formatted Number: 000-000 Passing Score: 800 Time Limit: 120 min File Version: 1.0 http://www.gratisexam.com/ 1D0-541 1D0-541 CIW v5 Database Design Specialist Version 1.7 Exam A QUESTION 1 With
More informationAdvance Database Management System
Advance Database Management System Conceptual Design Lecture- A simplified database design process Database Requirements UoD Requirements Collection and Analysis Functional Requirements A simplified database
More informationCONCEPTUAL DESIGN: ER TO RELATIONAL TO SQL
RELATIONAL MODEL TO Data Model CONCEPTUAL DESIGN: ER TO RELATIONAL TO How to represent Entity sets, Relationship sets, Attributes, Key and participation constraints, Subclasses, Weak entity sets...? 2
More informationData about data is database Select correct option: True False Partially True None of the Above
Within a table, each primary key value. is a minimal super key is always the first field in each table must be numeric must be unique Foreign Key is A field in a table that matches a key field in another
More informationCPS 510 Data Base I. There are 3 forms of database descriptions the ANSI/SPARK, 1975 and so on
Introduction DBMS 1957 A database can be defined as a set of Master files, organized & administered in a flexible way, so that the files in the database can be easily adapted to new unforeseen tasks! Relation
More informationWorking with Databases and Java
Working with Databases and Java Pedro Contreras Department of Computer Science Royal Holloway, University of London January 30, 2008 Outline Introduction to relational databases Introduction to Structured
More information4. Entity Relationship Model
4. Entity Relationship Model a) ER-Model: Used to construct conceptual data model, representing the structure and constraints of a database, which is not dependent on a software (like DBMS) or any data
More informationEGCI 321: Database Systems. Dr. Tanasanee Phienthrakul
1 EGCI 321: Database Systems Dr. Tanasanee Phienthrakul 2 Chapter 10 Data Definition Language (DDL) 3 Basic SQL SQL language Considered one of the major reasons for the commercial success of relational
More informationChapter 9: MySQL for Server-Side Data Storage
Chapter 9: MySQL for Server-Side Data Storage General Notes on the Slides for This Chapter In many slides you will see webbook as a database name. That was the orginal name of our database. For this second
More informationReview -Chapter 4. Review -Chapter 5
Review -Chapter 4 Entity relationship (ER) model Steps for building a formal ERD Uses ER diagrams to represent conceptual database as viewed by the end user Three main components Entities Relationships
More informationObjectives of logical design... Transforming the ERD diagram into relations. Relational database components. Mapping a composite attribute
Logical database design and the relational model Objectives of logical design... Translate the conceptual design into a logical database design that can be implemented on a chosen DBMS Input: conceptual
More informationCPS510 Database System Design Primitive SYSTEM STRUCTURE
CPS510 Database System Design Primitive SYSTEM STRUCTURE Naïve Users Application Programmers Sophisticated Users Database Administrator DBA Users Application Interfaces Application Programs Query Data
More informationChapter 1 SQL and Data
Chapter 1 SQL and Data What is SQL? Structured Query Language An industry-standard language used to access & manipulate data stored in a relational database E. F. Codd, 1970 s IBM 2 What is Oracle? A relational
More informationChapter 2. Database Design. Database Systems p. 25/540
Chapter 2 Database Design Database Systems p. 25/540 Database Design Phases requirements analysis specification conceptual design conceptual schema logical design logical schema physical design physical
More informationChapter 4. In this chapter, you will learn:
Chapter Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel 1 In this chapter, you will learn: The main characteristics of entity
More informationAppendix A Database Design. Data Modeling and the Entity-Relationship Model
Appendix A Database Design Data Modeling and the Entity-Relationship Model 1 Three Stages of Database Development The three stages of database development are: 1. Requirements Analysis Stage 2. Component
More informationDatabases - 4. Other relational operations and DDL. How to write RA expressions for dummies
Databases - 4 Other relational operations and DDL How to write RA expressions for dummies Step 1: Identify the relations required and CP them together Step 2: Add required selections to make the CP Step
More informationCS403- Database Management Systems Solved Objective Midterm Papers For Preparation of Midterm Exam
CS403- Database Management Systems Solved Objective Midterm Papers For Preparation of Midterm Exam Question No: 1 ( Marks: 1 ) - Please choose one Which of the following is NOT a feature of Context DFD?
More informationLECTURE 3: ENTITY-RELATIONSHIP MODELING
LECTURE 3: ENTITY-RELATIONSHIP MODELING Ref. Chapter11 + Appendix F from Database Systems: A Practical Approach to Design, Implementation and Management. Thomas Connolly, Carolyn Begg. 1 IS220 : D a t
More informationDatabase Management System 6 ER Modeling...
Database Management System 6 School of Computer Engineering, KIIT University 6.1 A key allows us to identify a set of attributes that suffice to distinguish entities from each other A key is a property
More informationData Analysis 1. Chapter 2.1 V3.1. Napier University Dr Gordon Russell
Data Analysis 1 Chapter 2.1 V3.1 Copyright @ Napier University Dr Gordon Russell Entity Relationship Modelling Overview Database Analysis Life Cycle Components of an Entity Relationship Diagram What is
More informationCS403- Database Management Systems Solved MCQS From Midterm Papers. CS403- Database Management Systems MIDTERM EXAMINATION - Spring 2010
CS403- Database Management Systems Solved MCQS From Midterm Papers April 29,2012 MC100401285 Moaaz.pk@gmail.com Mc100401285@gmail.com PSMD01 CS403- Database Management Systems MIDTERM EXAMINATION - Spring
More informationEntity Relationship Modelling
Entity Relationship Modelling Overview Database Analysis Life Cycle Components of an Entity Relationship Diagram What is a relationship? Entities, attributes, and relationships in a system The degree of
More informationFundamentals, Design, and Implementation, 9/e Copyright 2004 Database Processing: Fundamentals, Design, and Implementation, 9/e by David M.
Chapter 5 Database Design Elements of Database Design Fundamentals, Design, and Implementation, 9/e Chapter 5/2 The Database Design Process Create tables and columns from entities and attributes Select
More informationReview for Exam 1 CS474 (Norton)
Review for Exam 1 CS474 (Norton) What is a Database? Properties of a database Stores data to derive information Data in a database is, in general: Integrated Shared Persistent Uses of Databases The Integrated
More informationSolved MCQ on fundamental of DBMS. Set-1
Solved MCQ on fundamental of DBMS Set-1 1) Which of the following is not a characteristic of a relational database model? A. Table B. Tree like structure C. Complex logical relationship D. Records 2) Field
More information1Z0-007 ineroduction to oracle9l:sql
ineroduction to oracle9l:sql Q&A DEMO Version Copyright (c) 2007 Chinatag LLC. All rights reserved. Important Note Please Read Carefully For demonstration purpose only, this free version Chinatag study
More informationThe Entity-Relationship Model (ER Model) - Part 2
Lecture 4 The Entity-Relationship Model (ER Model) - Part 2 By Michael Hahsler Based on slides for CS145 Introduction to Databases (Stanford) Lecture 4 > Section 2 What you will learn about in this section
More informationBasant Group of Institution
Basant Group of Institution Visual Basic 6.0 Objective Question Q.1 In the relational modes, cardinality is termed as: (A) Number of tuples. (B) Number of attributes. (C) Number of tables. (D) Number of
More informationTranslation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530
Translation of ER-diagram into Relational Schema Dr. Sunnie S. Chung CIS430/530 Learning Objectives Define each of the following database terms Relation Primary key Foreign key Referential integrity Field
More informationMahathma Gandhi University
Mahathma Gandhi University BSc Computer science III Semester BCS 303 OBJECTIVE TYPE QUESTIONS Choose the correct or best alternative in the following: Q.1 In the relational modes, cardinality is termed
More informationtablename ORDER BY column ASC tablename ORDER BY column DESC sortingorder, } The WHERE and ORDER BY clauses can be combined in one
} The result of a query can be sorted in ascending or descending order using the optional ORDER BY clause. The simplest form of an ORDER BY clause is SELECT columnname1, columnname2, FROM tablename ORDER
More informationDATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEM For COMPUTER SCIENCE DATABASE MANAGEMENT. SYSTEM SYLLABUS ER model. Relational model: relational algebra, tuple calculus, SQL. Integrity constraints, normal forms. File organization,
More informationThe Relational Model
The Relational Model What is the Relational Model Relations Domain Constraints SQL Integrity Constraints Translating an ER diagram to the Relational Model and SQL Views A relational database consists
More informationDatabase Processing. Fundamentals, Design, and Implementation. Global Edition
Database Processing Fundamentals, Design, and Implementation 14th Edition Global Edition Database Processing: Fundamentals, Design, and Implementation, Global Edition Table of Contents Cover Title Page
More informationDATABASE SYSTEMS. Chapter 5 Entity Relationship (ER) Modelling DESIGN IMPLEMENTATION AND MANAGEMENT INTERNATIONAL EDITION ROB CORONEL CROCKETT
DATABASE SYSTEMS DESIGN IMPLEMENTATION AND MANAGEMENT INTERNATIONAL EDITION ROB CORONEL CROCKETT Chapter 5 Entity Relationship (ER) Modelling 1 Coronel & Crockett 978184480731) In this chapter, you will
More informationEntity Relationship Diagram (ERD) Dr. Moustafa Elazhary
Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary Data Modeling Data modeling is a very vital as it is like creating a blueprint to build a house before the actual building takes place. It is built
More informationThe Relational Model. Why Study the Relational Model? Relational Database: Definitions
The Relational Model Database Management Systems, R. Ramakrishnan and J. Gehrke 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Microsoft, Oracle, Sybase, etc. Legacy systems in
More informationInformation Technology Audit & Cyber Security
Information Technology Audit & Cyber Security Structured Data Requirements Systems & Infrastructure Lifecycle Management with E-R LEARNING OBJECTIVES Explain the role of conceptual data modeling in the
More informationBabu Madhav Institute of Information Technology 2015
Paper No.:060010102 Subject: Database Management Systems (Practical) Program: 5 Years Integrated M.Sc.(IT) Semester: 01 Practical No: 1 Enrolment No: Practical Problem Create following tables: CLIENT_MASTER
More informationII. Data Models. Importance of Data Models. Entity Set (and its attributes) Data Modeling and Data Models. Data Model Basic Building Blocks
Data Modeling and Data Models II. Data Models Model: Abstraction of a real-world object or event Data modeling: Iterative and progressive process of creating a specific data model for a specific problem
More informationDatabase Applications (15-415)
Database Applications (15-415) The Relational Model Lecture 3, January 18, 2015 Mohammad Hammoud Today Last Session: The entity relationship (ER) model Today s Session: ER model (Cont d): conceptual design
More informationDatabase Design. IIO30100 Tietokantojen suunnittelu. Michal Zabovsky. Presentation overview
Database Design IIO30100 Tietokantojen suunnittelu Michal Zabovsky Department of Informatics Faculty of Management Science and Informatics University of Zilina Slovak Republic Presentation overview Software
More information- Database: Shared collection of logically related data and a description of it, designed to meet the information needs of an organization.
أساسيات قواعد بيانات 220) DataBase fundamentals (IS Lecture 1: Ch1 -Principles of DataBases- File-Based Systems: Collection of application programs that perform services for the end users. (e.g: reports).
More informationRelational Database Systems Part 01. Karine Reis Ferreira
Relational Database Systems Part 01 Karine Reis Ferreira karine@dpi.inpe.br Aula da disciplina Computação Aplicada I (CAP 241) 2016 Database System Database: is a collection of related data. represents
More informationDatabase Logical Design
Database Logical Design IT 5101 Introduction to Database Systems J.G. Zheng Fall 2011 Overview Relational model is a logical model Based on mathematical theories and rules Two ways to design a relational
More informationLecture3: Data Modeling Using the Entity-Relationship Model.
College of Computer and Information Sciences - Information Systems Dept. Lecture3: Data Modeling Using the Entity-Relationship Model. Ref. Chapter12 Prepared by L. Nouf Almujally & Aisha AlArfaj Rev. by
More informationChapter 13 : Informatics Practices. Class XI ( As per CBSE Board) SQL Commands. New Syllabus Visit : python.mykvs.in for regular updates
Chapter 13 : Informatics Practices Class XI ( As per CBSE Board) SQL Commands New Syllabus 2018-19 SQL SQL is an acronym of Structured Query Language.It is a standard language developed and used for accessing
More informationTechno India Batanagar Computer Science and Engineering. Model Questions. Subject Name: Database Management System Subject Code: CS 601
Techno India Batanagar Computer Science and Engineering Model Questions Subject Name: Database Management System Subject Code: CS 601 Multiple Choice Type Questions 1. Data structure or the data stored
More informationSQL Commands & Mongo DB New Syllabus
Chapter 15 : Computer Science Class XI ( As per CBSE Board) SQL Commands & Mongo DB New Syllabus 2018-19 SQL SQL is an acronym of Structured Query Language.It is a standard language developed and used
More informationDATABASES SQL INFOTEK SOLUTIONS TEAM
DATABASES SQL INFOTEK SOLUTIONS TEAM TRAINING@INFOTEK-SOLUTIONS.COM Databases 1. Introduction in databases 2. Relational databases (SQL databases) 3. Database management system (DBMS) 4. Database design
More informationThe Entity-Relationship Model. Overview of Database Design
The Entity-Relationship Model Chapter 2, Chapter 3 (3.5 only) Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Overview of Database Design Conceptual design: (ER Model is used at this stage.)
More informationMIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: Time: 60 min Marks: 38
Student Info StudentID: Center: ExamDate: MIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: 1356458 Time: 60 min Marks: 38 BC080402322 OPKST 5/28/2010 12:00:00 AM
More informationThe Entity Relationship Model
The Entity Relationship Model CPS352: Database Systems Simon Miner Gordon College Last Revised: 2/4/15 Agenda Check-in Introduction to Course Database Environment (db2) SQL Group Exercises The Entity Relationship
More informationDatabase Logical Design
Database Logical Design CIS 3730 Designing and Managing Data J.G. Zheng Fall 2010 1 Overview Relational model is a logical model Based on mathematical theories and rules Two ways to design a relational
More informationIntroduction to Data Management. Lecture #5 (E-R Relational, Cont.)
Introduction to Data Management Lecture #5 (E-R Relational, Cont.) Instructor: Mike Carey mjcarey@ics.uci.edu Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Announcements v HW#1 is due
More informationIntroduction to Databases
Informática y Comunicaciones Chapter 6 Introduction to Databases KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright 2013 Pearson Education, Inc. Publishing as Prentice Hall Introduction to Databases
More informationThe Relational Model. Outline. Why Study the Relational Model? Faloutsos SCS object-relational model
The Relational Model CMU SCS 15-415 C. Faloutsos Lecture #3 R & G, Chap. 3 Outline Introduction Integrity constraints (IC) Enforcing IC Querying Relational Data ER to tables Intro to Views Destroying/altering
More informationSQL: Concepts. Todd Bacastow IST 210: Organization of Data 2/17/ IST 210
SQL: Concepts Todd Bacastow IST 210: Organization of Data 2/17/2004 1 Design questions How many entities are there? What are the major entities? What are the attributes of each entity? Is there a unique
More informationWeek. Lecture Topic day (including assignment/test) 1 st 1 st Introduction to Module 1 st. Practical
Name of faculty: Gaurav Gambhir Discipline: Computer Science Semester: 6 th Subject: CSE 304 N - Essentials of Information Technology Lesson Plan Duration: 15 Weeks (from January, 2018 to April, 2018)
More informationCMPE 131 Software Engineering. Database Introduction
Presented By Melvin Ch ng CMPE 131 Software Engineering September 14, 2017 Database Introduction Ruby on Rails ORM Agenda Database Management System (DBMS) SQL vs NoSQL Relational Database Introduction
More informationExam code: Exam name: Database Fundamentals. Version 16.0
98-364 Number: 98-364 Passing Score: 800 Time Limit: 120 min File Version: 16.0 Exam code: 98-364 Exam name: Database Fundamentals Version 16.0 98-364 QUESTION 1 You have a table that contains the following
More informationObjectives Definition iti of terms List five properties of relations State two properties of candidate keys Define first, second, and third normal for
Chapter 5: Logical Database Design and the Relational Model Modern Database Management 9 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Heikki Topi 2009 Pearson Education, Inc. Publishing as Prentice
More information1D D0-541 CIW v5 Database Design Specialist Version 1.7
1D0-541 CIW v5 Database Design Specialist Version 1.7 QUESTION NO: 1 With regard to databases, what is normalization? A. The process of reducing the cardinality of a relation B. The process of organizing
More informationA l Ain University Of Science and Technology
A l Ain University Of Science and Technology 4 Handout(4) Database Management Principles and Applications The Entity Relationship (ER) Model http://alainauh.webs.com/ 1 In this chapter, you will learn:
More informationCOSC 304 Introduction to Database Systems SQL DDL. Dr. Ramon Lawrence University of British Columbia Okanagan
COSC 304 Introduction to Database Systems SQL DDL Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca SQL Overview Structured Query Language or SQL is the standard query language
More informationThe Relational Model. Chapter 3
The Relational Model Chapter 3 Why Study the Relational Model? Most widely used model. Systems: IBM DB2, Informix, Microsoft (Access and SQL Server), Oracle, Sybase, MySQL, etc. Legacy systems in older
More informationTHE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E)
THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E) 2 CHAPTER 7 OUTLINE Using High-Level, Conceptual Data Models for Database Design Entity-Relationship (ER) model Popular high-level conceptual
More informationADVANCED DATABASES ; Spring 2015 Prof. Sang-goo Lee (11:00pm: Mon & Wed: Room ) Advanced DB Copyright by S.-g.
4541.564; Spring 2015 Prof. Sang-goo Lee (11:00pm: Mon & Wed: Room 301-203) ADVANCED DATABASES Copyright by S.-g. Lee Review - 1 General Info. Text Book Database System Concepts, 6 th Ed., Silberschatz,
More informationAn Effective Methodology for an Upper-level Fundamentals of Database Systems Course
An Effective Methodology for an Upper-level Fundamentals of Database Systems Course Charles L. McDonald, Jr., Ph.D. Texas A & M University Texarkana Charles.McDonald@tamut.edu Theresa McDonald, Ph.D. Texarkana
More informationB. V. Patel Institute of Business Management, Computer and Information Technology, Uka Tarsadia University 2014
Paper No.:030010102 Program: B.C.A. Semester: 01 Subject: Database Management Systems Module 1- File Organization and Structure Short answer questions: 1. What can be defined as a set of isolated and unrelated
More informationSQL Fundamentals. Chapter 3. Class 03: SQL Fundamentals 1
SQL Fundamentals Chapter 3 Class 03: SQL Fundamentals 1 Class 03: SQL Fundamentals 2 SQL SQL (Structured Query Language): A language that is used in relational databases to build and query tables. Earlier
More informationL12: ER modeling 5. CS3200 Database design (sp18 s2) 2/22/2018
L12: ER modeling 5 CS3200 Database design (sp18 s2) https://course.ccs.neu.edu/cs3200sp18s2/ 2/22/2018 200 Announcements! Keep bringing your name plates J Exam 1 discussion: questions on grading: Piazza,
More informationDatabase Management Systems,
Database Management Systems Database Design (2) 1 Topics Data Base Design Logical Design (Review) Physical Design Entity Relationship (ER) Model to Relational Model Entity Relationship Attributes Normalization
More informationChapter # 4 Entity Relationship (ER) Modeling
Chapter # 4 Entity Relationship (ER) Modeling Entity Relationship (ER) Modeling ER model forms the basis of an ER diagram ERD represents conceptual database as viewed by end user ERDs depict database s
More informationDatabase Foundations. 6-4 Data Manipulation Language (DML) Copyright 2015, Oracle and/or its affiliates. All rights reserved.
Database Foundations 6-4 Roadmap You are here Introduction to Oracle Application Express Structured Query Language (SQL) Data Definition Language (DDL) Data Manipulation Language (DML) Transaction Control
More informationDC62 Database management system JUNE 2013
Q2 (a) Explain the differences between conceptual & external schema. Ans2 a. Page Number 24 of textbook. Q2 (b) Describe the four components of a database system. A database system is composed of four
More informationII B.Sc(IT) [ BATCH] IV SEMESTER CORE: RELATIONAL DATABASE MANAGEMENT SYSTEM - 412A Multiple Choice Questions.
Dr.G.R.Damodaran College of Science (Autonomous, affiliated to the Bharathiar University, recognized by the UGC)Re-accredited at the 'A' Grade Level by the NAAC and ISO 9001:2008 Certified CRISL rated
More informationUsing High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys
Chapter 7: Data Modeling Using the Entity- Relationship (ER) Model Using High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys
More informationA l Ain University Of Science and Technology
A l Ain University Of Science and Technology 4 Handout(4) Database Management Principles and Applications The Entity Relationship (ER) Model http://alainauh.webs.com/ http://www.comp.nus.edu.sg/~lingt
More informationPrivate Institute of Aga NETWORK DATABASE LECTURER NIYAZ M. SALIH
Private Institute of Aga 2018 NETWORK DATABASE LECTURER NIYAZ M. SALIH Data Definition Language (DDL): String data Types: Data Types CHAR(size) NCHAR(size) VARCHAR2(size) Description A fixed-length character
More informationTransforming ER to Relational Schema
Transforming ER to Relational Schema Transformation of ER Diagrams to Relational Schema ER Diagrams Entities (Strong, Weak) Relationships Attributes (Multivalued, Derived,..) Generalization Relational
More informationDatabase Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams
Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 7 Data Modeling with Entity Relationship Diagrams Objectives In this chapter, students will learn: The
More informationThe Relational Model. Roadmap. Relational Database: Definitions. Why Study the Relational Model? Relational database: a set of relations
The Relational Model CMU SCS 15-415/615 C. Faloutsos A. Pavlo Lecture #3 R & G, Chap. 3 Roadmap Introduction Integrity constraints (IC) Enforcing IC Querying Relational Data ER to tables Intro to Views
More informationDatabase Systems. Sven Helmer. Database Systems p. 1/567
Database Systems Sven Helmer Database Systems p. 1/567 Chapter 1 Introduction and Motivation Database Systems p. 2/567 Introduction What is a database system (DBS)? Obviously a system for storing and managing
More informationMinistry of Higher Education and Scientific research
Department of IT Technical Institute of Amedi Duhok Polytechnic University Subject: Database System Course Book: Year 2 (Second year) Lecturer's name: Dipl.Eng.Shorash A. Sami Academic Year: 2018/2019
More informationContents. Database. Information Policy. C03. Entity Relationship Model WKU-IP-C03 Database / Entity Relationship Model
Information Policy Database C03. Entity Relationship Model Code: 164323-03 Course: Information Policy Period: Spring 2013 Professor: Sync Sangwon Lee, Ph. D 1 Contents 01. Overview of Database Design 02.
More informationCourse Outline Faculty of Computing and Information Technology
Course Outline Faculty of Computing and Information Technology Title Code Instructor Name Credit Hours Prerequisite Prerequisite Skill/Knowledge/Understanding Category Course Goals Statement of Course
More informationDetailed Data Modelling. Detailed Data Modelling. Detailed Data Modelling. Identifying Attributes. Attributes
IMS1002 /CSE1205 Systems Analysis and Design Detailed Data Modelling The objective of detailed data modelling is to develop a detailed data structure that: Detailed Data Modelling: Attribute Collection
More informationVU Mobile Powered by S NO Group All Rights Reserved S NO Group 2013
1 CS403 Final Term Solved MCQs & Papers Mega File (Latest All in One) Question # 1 of 10 ( Start time: 09:32:20 PM ) Total Marks: 1 Each table must have a key. primary (Correct) secondary logical foreign
More informationData Modeling. Yanlei Diao UMass Amherst. Slides Courtesy of R. Ramakrishnan and J. Gehrke
Data Modeling Yanlei Diao UMass Amherst Slides Courtesy of R. Ramakrishnan and J. Gehrke 1 Outline v Conceptual Design: ER Model v Relational Model v Logical Design: from ER to Relational 2 Conceptual
More information