Institute of Southern Punjab, Multan
|
|
- Kathleen Fitzgerald
- 5 years ago
- Views:
Transcription
1 Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks) Honors: Magna Cumm Laude Honors Degree Gold Medalist! Blog Url: noumanfarooqatisp.wordpress.com
2 Grading Policy Classification Assignments & Quizzes 6% (6 Marks in Total) Project & Presentation 9% (9 Marks) Midterm Exams 25% (25 Marks) Final Exam 50% (50 Marks) Total 100 % NOTE: 10% Marks will be Automatically given by Examination Deptt. on Attendance. 2
3 Academic Honesty Your work in this class must be your own If students are found to have collaborated excessively or to have cheated (e.g. by copying or sharing answers during an examination), all involved will at a minimum receive grades of 0 for the first violation Further violations will result in failure in the course 3
4 Few Things to Remember!! Attendance will be taken with in 15 minutes at the start of class Students are allowed to enter into class with in 30 minutes at the starting of class Zero tolerance policy on attendance, discipline of class during lectures! Assignments must be submitted on time, no late submissions In case of copied assignment both parties will be given zero! Projects, Presentation, Quizzes, Assignments, Class participation are very important. Don t miss your Classes, Quizzes, Presentations, Assignments and Projects! 4
5 Advance Database Systems Overview of RDBMS Lecture# 1 5
6 Recommended Books/Manuals Modern Database Management - 8th Edition by Jeffery A. Hoffer, Prescott and McFadden Fundamentals of Database Systems, By R. Elmasri and S. Navathe, 6th Edition, 2011 Database Systems-A Practical Approach to Design, Implementation and Management by Thomas Connolly and Carolyn BEGG, 4th Edition Database Systems Design, Implementation, and Management-Carlos, Steven and Peter (9th Edition) A Guide To MySQL 8th Edition by Philip J. Pratt & Mary Z. Last A guide to Advance MySQL latest Edition by Muhammad Nouman Farooq 6
7 Lecture 1: Overview of RDBMS Database Definitions and Advantages of RDBMS Hierarchical Structure of DBMS Introduction to File Processing Systems Advantages of Database Approach System Development Life Cycle (SDLC) Database Development Process (DDP) The Three-Level ANSI-SPARC Architecture Relational Data Structure Relational Keys 7
8 Jonathan Abrams Friendster fails due to not optimized and efficient Database System Mark Zuckerberg Facebook did not fail due to optimized and efficient Database System 8
9 9
10 Database Definitions and Advantages of RDBMS 10
11 Database Definitions An organized collection of information in computerized format. A collection of information organized and presented to serve a specific purpose 11
12 Continued The term database is often incorrectly referred to as a synonym for a database management system (DBMS). 12
13 Continued Each of the above given definition are correct, and describe database from slightly variant perspectives. From exam point of view, anyone will do. However, within this course, we will be referring first of the above definitions more frequently, and concepts discussed in the definition like, logically related data, shared collection should be clear. 13
14 14
15 Data and Information Data is the collection of raw facts collected from any specific environment for a specific purpose. Data in itself does not show anything about its environment, so to get desired types of results from the data we transform it into information by applying certain processing on it. Once we have processed data using different methods; than data is converted into meaningful form and that form of the Data is called information. 15
16 Continued 16
17 Continued If we consider the data in the previous figure without the titles or the labels associated with the data (EmpName, age, salary) then; it is not much useful. However, after attaching these labels it brings some meanings to us, this meaningfulness is further increased when we associate some other labels, like the company name and the department name etc. So this is a very simple example of processing that we can do on the data to make it information. 17
18 Continued 18
19 Database Systems The term database system is a combination of database and the Database Management System (DBMS). So, database is collection of meaningful data/information, DBMS is a tool to manage this data, and both jointly are called database system. 19
20 Why Use Models? Models can be useful when we want to examine or manage part of the real world. The costs of using a model are often considerably lower than the costs of using or experimenting with the real world itself. Examples: Network Model Simulation for an Organization in Packet Tracer World Map ERD for Relational Database Systems 20
21 Hierarchical Structure of DBMS 21
22 22
23 23
24 24
25 25
26 26
27 27
28 28
29 29
30 30
31 31
32 32
33 33
34 34
35 35
36 36
37 37
38 38
39 Flat File Vs Relational Database System 39
40 Flat File Vs Relational Database System A flat file database is a database designed around a single table. The flat file design puts all database information in one table, or list, with fields to represent all parameters. A flat file may contain many fields, often, with duplicate data that are prone to data corruption. 40
41 Continued If you decide to merge data between two flat files, you need to copy and paste relevant information from one file to the other. There is no automation between flat files. If you have two or more flat files that contain client addresses, for example, and a client moved, you would have to manually modify the address parameters in each file that contains that client s information. 41
42 Relational Database System A relational database, on the other hand, incorporates multiple tables with methods for the tables to work together. The relationships between table data can be ordered, merged and displayed in database forms. These tables are to be normalized up to 3 rd Normal Form (3-NF). 42
43 Introduction to File Processing Systems 43
44 File Processing System 44
45 File Processing System 45
46 File Processing System 46
47 Continued 47
48 Advantages of Database Approach 48
49 Database System Environment It will be helpful to reiterate our database definition here, that is, Database is a shared collection of logically related data, designed to meet the information needs of multiple users in an organization A typical database system environment is shown in the figure on next slide. 49
50 Continued 50
51 Continued The figure shows different subsystem or applications in an educational institution, like library system, examination system, and registration system. There are separate, different application programs for every application or subsystem. However, the data for all applications is stored at the same place in the database and all application programs, relevant data and users are being managed by the DBMS. 51
52 1-Data Sharing The data for different applications or subsystems is placed at the same place. This introduces the major benefit of data sharing. That is, data that is common among different applications need not to be stored repeatedly, as was the case in the file processing environment. For example, all three systems of an educational institution shown in figure need to store the data about students. 52
53 Continued Now the data like registration number, name, address, father name that is common among different applications is being stored repeatedly in the file processing system environment, where as it is being stored just once in database system environment and is being shared by all applications. 53
54 2-Data Independence Data and programs are independent of each other, so change is one has no or minimum effect on other 3-Controlled Redundancy Means that we do not need to duplicate data unnecessarily; we do duplicate data in the databases, however, this duplication is deliberate and controlled. 54
55 4-Data Integrity: Very important feature; means the validity of the data being entered in the database. Since the data is being placed at a central place and being managed by the DBMS, so it provides a very helpful to check or ensure that the data being entered into the database is actually valid. We can also define it as Level of Correctness of Data. 55
56 5-Better Data Security All application programs access data through DBMS, So DBMS can very efficiently check that which user is performing which action and accessing which part of data. So, A DBMS is the most effectively control and maintain security of Data stored in a database. 56
57 6-Faster Development of new Applications The database environment allows us faster application development because of its many reasons. As we know that database is designed focusing the conclude result to meet the expectations of the client. 57
58 7-Better Concurrency Control Concurrency means the access of database form as number of points simultaneously. Concurrency Control means to access the database in such a way that all the data accesses are completed correctly and transparently. One example of controlled concurrency is the use of ATM Machine for withdrawal of money (cash). All ATM machines of a bank are interconnected to a central database system worldwide, so that a user can access its account from anywhere in the world and can get cash from any ATM terminal. 58
59 Continued As there are thousands of ATM terminal across the world for a specific bank so as a result thousands of user process and access the bank s database. All this process is managed concurrently using the database systems and is done in such an efficient manner that no two user face any delay in the processing of their requests. 59
60 8-Better Backup and Recovery Facility Some time happens that a database which was in use and very important transactions were made after the last backup was made, all of a sudden due to any disastrous situation the database crashes (improper shutdown, invalid disk access, etc.) Now, In such a situation the database management system should be able to recover the database to a consistent state so that the transactions made after the last backup are not lost. 60
61 System Development Life Cycle (SDLC) 61
62 62
63 63
64 Database Development Process (DDP) 64
65 Database Development Process Database Application development Process includes the Following Stages or steps: 1. Preliminary Study 2. Requirement Analysis 3. Database Design 4. Physical Design 5. Implementation 6. Maintenance 65
66 Continued 66
67 Preliminary Study Design of database is carried out in a number of steps; these steps play important role in the design process and need to be given proper attention. First Phase of the database development process is the Preliminary Study, which is based on the proper study of the system. It means that all the parts of the systems, or the section of the subject organization for which we intend to develop the system must be studied. 67
68 Continued We should find the relation or interaction of different section of the organization with each other and should understand the way information flows between different sections of the organization. Moreover it should also be made clear that what processing is performed at each stage of the system. 68
69 Requirement Analysis Once we have investigated the organization for its different sections and the way data flows between those sections; Detailed study of the system is started to find out the requirements of each section. In second phase, The detailed study of the system and its functionality decisions made at this stage decide the overall activity of the organization. Requirements of one section of the organization are fulfilled in such a way that all the sections in the organization are supporting each other. For example we can say that the results produced by the processing taking place at one section are used as input for another section. 69
70 Database Design Third phase in the database development process is the database design. This is a technical phase of the process and need handsome skill as a Database Administrator. This is the phase where the conceptual design of the database is created. It also known as Conceptual Data Modeling. Entities are identified and given attributes, relationships are built and different types of relationship are performed by assigning cardinalities. 70
71 Physical Design In fourth phase, The choice of the DBMS is made on the basis of requirements and the environment in which the system will operate. Implementing a database on a specific DBMS is very important because it involves the major financial investment of the organization, and can not be reverted in case a selected DBMS in not capable of providing the desired efficiency. Also, Assigning meaningful Data Types, Constraints/Limitations and De-Normalization of Data where required by the real time scenario/system are to be finalized and processed in this phase. 71
72 Implementation This phase is specific to writing the application programs needed to carry out different activities according to user requirements. We must write application programs in this phase by using MySQL (mai-structured query language) by using DBMS engine known as XAMPP (Cross platform apache MySequel PHP Perl). We can done coding with out any logical error; If we have implemented all previous phases of database development process correctly. 72
73 Maintenance Maintenance means to fine tune the system and check that the designed applications systems are fulfilling the purpose for which they are meant. Also, this phase may involve designing any new application for the enhancement of the system. Or an already working application may need to be updated or modified to remove any errors or to add some functionality in the system. 73
74 Continued All these stages are necessary and must be given the necessary attention at each level to get properly working and good system design and a better working environment. 74
75 The Three-Level ANSI-SPARC Architecture 75
76 Three Level ANSI-SPARC Architecture The levels form a three-level architecture comprising an External, Conceptual, and an Internal level. The way users observe the data is called the External Level (Front End). The way the DBMS and the Operating System perceive/stores the data (Back End) is the Internal Level. The Conceptual Level provides both the mapping and the desired independence between the external and internal levels. 76
77 Continued 77
78 Continued 78
79 Continued The overall Description/Skeleton structure of the database is called the database schema. At the highest level, we have multiple external schemas (also called subschemas) that correspond to different views of the data. At the conceptual level, we have the conceptual schema, which describes all the entities, attributes, and relationships together with integrity constraints. At the lowest level, we have the internal schema, which is a complete description of the internal model, containing the definitions of stored records, the methods of representation, the data fields, and the indexes and storage structures used. There is only one conceptual schema and one internal schema per database. 79
80 Continued 80
81 Continued The objective of the three-level architecture is to separate each user s view of the database from the way the database is physically represented. There are several reasons why this separation is desirable:- 1. Each user should be able to access the same data, but have a different customized view of the data. 2. Users should not have to deal directly with physical database storage details. 81
82 Continued 4. The internal structure of the database should be unaffected by changes to the physical aspects of storage, such as the changeover to a new storage device. 5. The Database Administrator (DBA) should be able to change the conceptual and database storage structures without affecting the users views. 82
83 Continued A major objective for the three-level architecture is to provide data independence, which means that upper levels are unaffected by changes to lower levels. There are two kinds of data independence: - 1. Logical Data Independence. 2. Physical Data Independence. 83
84 Continued 84
85 Continued 1. Logical Data Independence: - Changes to the conceptual schema, such as the addition or removal of new entities, attributes, or relationships, should be possible without having to change existing external schemas or having to rewrite application programs. Clearly, the users for whom the changes have been made need to be aware of them, but what is important is that other users should not be. 85
86 Continued 2. Physical Data Independence: - Changes to the internal schema, such as using different file storage structures, using different storage devices should be possible without having to change the conceptual or external schemas. 86
87 Relational Data Structure 87
88 Relational Data Structure 88
89 89
90 90
91 Relational Keys 91
92 Relational Keys Keys are used to create relationship among different database tables. An entity type may have many instances, from a few to several thousands and even more. Now out of many instances, when and if we want to pick a particular/single instance, and many times we do need it, then key is the solution. For example, think of whole population of Pakistan, the data of all Pakistanis lying at one place, say with NADRA people. Now if at sometime we need to identify a particular person out of all this data, how can we do that? 92
93 Continued While defining an entity; we also generally define the key of that entity. How do we select the key, from the study of the real-world system; key attribute(s) already exist there, sometimes they don t automatically enabled; then the designer has to define one. A key can be simple, that is, consisting of single attribute, or it could be composite which consists of two or more attributes. 93
94 Super Key 94
95 Candidate Key A super key for which no subset is a super key is called a candidate key, or the minimal super key is the candidate key. It means that there are two conditions for the candidate key, One; It identifies the entity instances uniquely, as is required in case of super key, Second; It should be minimum, that is, no proper subset of candidate key is a key. 95
96 Continued So, If we have a simple super key, that is, that consists of single/simple attribute, it is definitely a candidate key, 100%. However, if we have a composite super key and if we take any attribute out of it and remaining part is not a super key anymore then that composite super key is also a candidate key since it is minimal super key. For example, one of the super keys that we identified from the entity STUDENT is regno, name, this super key is not a candidate key, since if we remove the regno attribute from this combination, name attribute alone is not able to identify the entity instances uniquely. 96
97 Primary Key A candidate key chosen by the database designer to act as key is the primary key. An entity type may have more than one candidate keys, in that case the database designer has to designate one of them as primary key, since there is always only a single primary key in an entity type. If there is just one candidate key then obviously the same will be declared as primary key. The primary key can also be defined as the successful candidate key. 97
98 Continued The relation that holds between super and candidate keys also holds between candidate and primary keys, that is, every primary key (PK) is a candidate key and every candidate key is a super key. A certain value that may be associated with any attribute is NULL, that means not given or not defined. A major characteristic of the Priamary Key is that it cannot have the NULL value. 98
99 Unique Key A candidate key which can return a Record uniquely but may store a NULL value is called as Unique Key. stdcontactnumber attribute in STUDENT table is known as Unique key. 99
100 Alternate Key Candidate keys which are not chosen as the primary key are known as alternate keys. For example, we have two candidate keys of EMPLOYEE in figure 2, regno and nidnumber, if we select regno as PK then the nidnumber will be alternate key. 100
101 Foreign Key Sometimes the information stored in a relation is linked to the information stored in another relation. If one of the relations is modified, the other must be checked, and perhaps modified, to keep the data consistent. 101
102 Continued Suppose that in addition to Students, we have a second relation: Enrolled (cid: string, sid: string, cgrade: Text) The sid field of Enrolled is called a foreign key and refers to Students. The foreign key in the referencing relation (Enrolled, in our example) must match the primary key of the referenced relation (Students), i.e., it must have the same number of columns and compatible data types, although the column names can be different. 102
103 Continued 103
104 Continued As the figure shows, there may well be some students who are not referenced from Enrolled (e.g., the student with sid=50000) However, every sid value that appears in the instance of the Enrolled table appears in the primary key column of a row in the Students table. 104
105 Continued If we try to insert the tuple (55555, Art104, A) into E1, the rule is violated because there is no tuple in S1 with the id 55555; the database system should reject such an insertion. Similarly, if we delete the tuple (53666, Jones, 18, 3.4) from S1, we violate the foreign key constraint because the tuple (53666, History105, B) in E1 contains sid value 53666, the sid of the deleted Students tuple. The DBMS should disallow the deletion or, perhaps, also delete the Enrolled tuple that refers to the deleted Students tuple. 105
106 Continued 106
107 Secondary Key Many times we need to access certain instances of an entity type using the values of one or more attributes other than the PK. The difference in accessing instances using the value of a key or non-key attribute is that the search on the value of PK will always return a single instance (if it exists), where as uniqueness is not guaranteed in case of non-key attribute. 107
108 Continued Such attributes on which we need to access the instances of an entity type that may not necessarily return unique instance is called the secondary key. For example, we want to see how many of our students belong to Multan, in that case we will access those instances of the STUDENT entity type that contain Multan in their address. 108
109 Continued In this case address will be called secondary key, since we are accessing instances on the basis of its value, and there is no compulsion that we will get a single instance. Keep one thing in mind here, that a particular access on the value of a secondary key MAY return a single instance, but that will be considered as chance. 109
110 Continued There is not the compulsion or it is not necessary for secondary key to return unique instance But; In case of super, candidate, primary and alternate keys it is compulsion that they will always return unique instance against a particular value. 110
111 Surrogate Key: A Surrogate Key is any column or set of columns that can be declared as the primary key instead of more than two composite Primary keys that jointly makes a Cumbersome key (CUMBERSOME meaning: Large Set). Example of Cumbersome key and Surrogate key is shown in next slide.
112 Continued b) Mapping the ternary relationship PATIENT TREATMENT Remember that the primary key MUST be unique This is why treatment date and time are included in the composite primary key But this makes a very Cumbersome Key It would be better to create a Surrogate Key like treatmentid in PATIENT_TREATMENT table 112
113 Quick Review of Relational Keys Concept s Every Candidate Key must be a Super Key. But, Every Super Key may not be a Candidate Key. Every Primary Key must be a Candidate Key. But, Every Candidate key may not be a Primary Key. Every Alternate Key must be a Candidate Key. But, Every Candidate key may not be a Alternate Key. Every Foreign Key must be a Primary Key. Every Secondary Key must not be a Candidate Key & Primary Key & Alternate Key. Cumbersome Key (Group of Composite Primary Keys) can be replaced by Surrogate Key 113
114 Class Activity 114
115 Class Activity (Solution) 115
116 Recommended Readings Chapter 1 from: - Database Systems-A Practical Approach to Design, Implementation and Management by Thomas Connolly and Carolyn BEGG, 4th Edition (Page No ) Modern Database Management - 8th Edition by Jeffery A. Hoffer, Prescott and McFadden (Page No ) 116
117 Chapter 2 from: - Continued Modern Database Management 8 th Edition by Jeffery A. Hoffer, Prescott and McFadden (Page No ) Database Systems-A Practical Approach to Design, Implementation and Management by Thomas Connolly and Carolyn BEGG, 4 th Edition (Page No ) Fundamentals of Database Systems 6 th Navathe (Page No ) Edition by Elmasri and 117
118 Continued Chapter 5 from: Modern Database Management 8 th Edition by Jeffery A. Hoffer, Prescott and McFadden (Page No ) Chapter 3 from: Database Systems-A Practical Approach to Design, Implementation and Management by Thomas Connolly and Carolyn BEGG, 4 th Edition (Page No ) 118
119 Summary of Lecture Lecture 1 Database Definitions and Advantages of RDBMS Hierarchical Structure of DBMS Introduction to File Processing Systems Advantages of Database Approach 119
120 Summary of Lecture (Continued..) Lecture 1 System Development Life Cycle (SDLC) Database Development Process (DDP) The Three-Level ANSI-SPARC Architecture Relational Data Structure Relational Keys 120
121 END OF LECTURE 1 121
Institute of Southern Punjab, Multan
Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks) Honors: Magna Cumm Laude Honors Degree Gold Medalist! Blog Url: noumanfarooqatisp.wordpress.com
More informationInstitute of Southern Punjab, Multan
Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. & Networks) Honors: Magna Cumm Laude Honors Degree Gold Medalist! Blog Url: noumanfarooqatisp.wordpress.com
More informationInstitute of Southern Punjab, Multan
Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks) Honors: Magna Cumm Laude Honors Degree Gold Medalist! Blog Url: noumanfarooqatisp.wordpress.com
More informationInstitute of Southern Punjab, Multan
Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks) Honors: Magna Cumm Laude Honors Degree Gold Medalist! Blog Url: noumanfarooqatisp.wordpress.com
More informationInstitute of Southern Punjab, Multan
Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks) Honors: Magna Cumm Laude Honors Degree Gold Medalist! Blog Url: noumanfarooqatisp.wordpress.com
More informationLecture2: Database Environment
College of Computer and Information Sciences - Information Systems Dept. Lecture2: Database Environment 1 IS220 : D a t a b a s e F u n d a m e n t a l s Topics Covered Data abstraction Schemas and Instances
More informationDatabase Management System CS403 Lecture No 1 Database definitions: 1 A shared collection of logically related data, designed to meet the information
Database Management System CS403 Lecture No 1 Database definitions: 1 A shared collection of logically related data, designed to meet the information needs of multiple users in an organization. 2 A Computerized
More informationInstitute of Southern Punjab, Multan
Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks) Honors: Magna Cumm Laude Honors Degree Gold Medalist! Blog Url: noumanfarooqatisp.wordpress.com
More informationDatabase Systems. Normalization Lecture# 7
Database Systems Normalization Lecture# 7 Lecture 7: Normalization Normalization (Brief Overview) Functional Dependencies and Keys 1 st Normal Form 2 nd Normal Form 3 rd Normal Form Class Activity 3 Normalization
More informationLECTURE1: PRINCIPLES OF DATABASES
LECTURE1: PRINCIPLES OF DATABASES Ref. Chapter1 Information Systems Department Chapter1 - Objectives 2 Problems with file-based approach. Database concepts. Database Management System (DBMS). Major components
More informationFundamentals of Database Systems (INSY2061)
Fundamentals of Database Systems (INSY2061) 1 What the course is about? These days, organizations are considering data as one important resource like finance, human resource and time. The management of
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 informationDatabase Management System (CS403)
Database Management System (CS403) DATABASE MANAGEMENT SYSTEM... 1 LECTURE NO. 01... 9 Reading Material... 9 Overview of Lecture... 9 Introduction to the course... 9 Database definitions:... 10 Importance
More informationIn This Lecture. The Relational Model. The Relational Model. Relational Data Structure. Unnamed and named tuples. New thing:scheme (and attributes)
Database Systems Lecture 3 Natasha Alechina In This Lecture Relational data integrity For more information Connolly and Begg chapter 3 E.F. Codd s paper `A Relational Model of Data for Large Shared Data
More informationChapter 1: The Database Environment
Chapter 1: The Database Environment Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden Prentice Hall, 2002 1 Definitions Data: Meaningful facts, text, graphics,
More informationDatabase Management Systems MIT Introduction By S. Sabraz Nawaz
Database Management Systems MIT 22033 Introduction By S. Sabraz Nawaz Recommended Reading Database Management Systems 3 rd Edition, Ramakrishnan, Gehrke Murach s SQL Server 2008 for Developers Any book
More informationCS430/630 Database Management Systems Spring, Betty O Neil University of Massachusetts at Boston
CS430/630 Database Management Systems Spring, 2019 Betty O Neil University of Massachusetts at Boston People & Contact Information Instructor: Prof. Betty O Neil Email: eoneil AT cs DOT umb DOT edu (preferred
More information9/8/2018. Prerequisites. Grading. People & Contact Information. Textbooks. Course Info. CS430/630 Database Management Systems Fall 2018
CS430/630 Database Management Systems Fall 2018 People & Contact Information Instructor: Prof. Betty O Neil Email: eoneil AT cs DOT umb DOT edu (preferred contact) Web: http://www.cs.umb.edu/~eoneil Office:
More informationIntroduction to Data Management. Lecture #4 (E-R Relational Translation)
Introduction to Data Management Lecture #4 (E-R Relational Translation) Instructor: Mike Carey mjcarey@ics.uci.edu Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Announcements v Today
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 informationChapter 1 Chapter-1
Chapter 1 Chapter-1 Data: Data are the raw facts that can be obtained after some experiments or observations. Raw data is of no use until and unless we process it to find some useful information form it.
More information0. Database Systems 1.1 Introduction to DBMS Information is one of the most valuable resources in this information age! How do we effectively and efficiently manage this information? - How does Wal-Mart
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 informationJohn Edgar 2
CMPT 354 http://www.cs.sfu.ca/coursecentral/354/johnwill/ John Edgar 2 Assignments 30% Midterm exam in class 20% Final exam 50% John Edgar 3 A database is a collection of information Databases of one
More informationNEW YORK CITY COLLEGE OF TECHNOLOGY COMPUTER SYSTEMS TECHNOLOGY DEPARTMENT CST4714 DATABASE ADMINISTRATION (2 class hours, 2 lab hours, 3 credits)
NEW YORK CITY COLLEGE OF TECHNOLOGY COMPUTER SYSTEMS TECHNOLOGY DEPARTMENT CST4714 DATABASE ADMINISTRATION (2 class hours, 2 lab hours, 3 credits) COURSE DESCRIPTION: Students in this course will develop
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 informationDATABASE DEVELOPMENT (H4)
IMIS HIGHER DIPLOMA QUALIFICATIONS DATABASE DEVELOPMENT (H4) Friday 3 rd June 2016 10:00hrs 13:00hrs DURATION: 3 HOURS Candidates should answer ALL the questions in Part A and THREE of the five questions
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 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 Systems ( 資料庫系統 ) Practicum in Database Systems ( 資料庫系統實驗 ) 9/20 & 9/21, 2006 Lecture #1
Database Systems ( 資料庫系統 ) Practicum in Database Systems ( 資料庫系統實驗 ) 9/20 & 9/21, 2006 Lecture #1 1 Course Goals First course in database systems. Main Course (3 units) - Learn Use a relational database
More information1. Considering functional dependency, one in which removal from some attributes must affect dependency is called
Q.1 Short Questions Marks 1. Considering functional dependency, one in which removal from some attributes must affect dependency is called 01 A. full functional dependency B. partial dependency C. prime
More informationCT13 DATABASE MANAGEMENT SYSTEMS DEC 2015
Q.1 a. Explain the role of concurrency control software in DBMS with an example. Answer: Concurrency control software in DBMS ensures that several users trying to update the same data do so in a controlled
More informationIST659 Database Admin Concepts & Management Syllabus Fall Location: Time: Office Hours:
Instructor: Withro H. Wiggins Phone: (315) 446-5418 (Home) Email: wwiggins@syr.edu Office: Adjunct Location: Time: Office Hours: LMS Wednesday - Tuesday by appointment (online) Course Description This
More informationData Management Lecture Outline 2 Part 2. Instructor: Trevor Nadeau
Data Management Lecture Outline 2 Part 2 Instructor: Trevor Nadeau Data Entities, Attributes, and Items Entity: Things we store information about. (i.e. persons, places, objects, events, etc.) Have relationships
More informationThe Relational Model. Relational Data Model Relational Query Language (DDL + DML) Integrity Constraints (IC)
The Relational Model Relational Data Model Relational Query Language (DDL + DML) Integrity Constraints (IC) Why Study the Relational Model? Most widely used model in Commercial DBMSs: Vendors: IBM, Microsoft,
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 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 informationData! CS 133: Databases. Goals for Today. So, what is a database? What is a database anyway? From the textbook:
CS 133: Databases Fall 2018 Lec 01 09/04 Introduction & Relational Model Data! Need systems to Data is everywhere Banking, airline reservations manage the data Social media, clicking anything on the internet
More informationRelational Model. IT 5101 Introduction to Database Systems. J.G. Zheng Fall 2011
Relational Model IT 5101 Introduction to Database Systems J.G. Zheng Fall 2011 Overview What is the relational model? What are the most important practical elements of the relational model? 2 Introduction
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 informationDatabase Systems ( 資料庫系統 )
Database Systems ( 資料庫系統 ) 9.28.2011 Lecture #3 1 Course Administration Please download HW #1 from course homepage It is due 10/12/2011. This lecture: R&G Chapter 3 Next week reading: R&G Chapter 41~ 4.1
More informationDatabase Technology Introduction. Heiko Paulheim
Database Technology Introduction Outline The Need for Databases Data Models Relational Databases Database Design Storage Manager Query Processing Transaction Manager Introduction to the Relational Model
More informationThe Relational Model. Chapter 3. Comp 521 Files and Databases Fall
The Relational Model Chapter 3 Comp 521 Files and Databases Fall 2014 1 Why the Relational Model? Most widely used model by industry. IBM, Informix, Microsoft, Oracle, Sybase, MySQL, Postgres, Sqlite,
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 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 informationOutline. Database Management Systems (DBMS) Database Management and Organization. IT420: Database Management and Organization
Outline IT420: Database Management and Organization Dr. Crăiniceanu Capt. Balazs www.cs.usna.edu/~adina/teaching/it420/spring2007 Class Survey Why Databases (DB)? A Problem DB Benefits In This Class? Admin
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 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 informationIntroduction to Data Management. Lecture #5 Relational Model (Cont.) & E-Rà Relational Mapping
Introduction to Data Management Lecture #5 Relational Model (Cont.) & E-Rà Relational Mapping Instructor: Mike Carey mjcarey@ics.uci.edu Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1
More informationIntroduction to Database Systems
Introduction to Database Systems UVic C SC 370 Daniel M German Introduction to Database Systems (1.2.0) CSC 370 4/5/2005 14:51 p.1/27 Overview What is a DBMS? what is a relational DBMS? Why do we need
More informationModern Database Systems Lecture 1
Modern Database Systems Lecture 1 Aristides Gionis Michael Mathioudakis T.A.: Orestis Kostakis Spring 2016 logistics assignment will be up by Monday (you will receive email) due Feb 12 th if you re not
More informationComp 5311 Database Management Systems. 4b. Structured Query Language 3
Comp 5311 Database Management Systems 4b. Structured Query Language 3 1 SQL as Data Definition Language Creates the Students relation. The type (domain) of each field is specified, and enforced by the
More informationRunning Example Tables name location
Running Example Pubs-Drinkers-DB: The data structures of the relational model Attributes and domains Relation schemas and database schemas databases Pubs (name, location) Drinkers (name, location) Sells
More informationDatabase Architecture 1
Database Architecture 1 References Fundamentals of Database Systems, Elmasri/Navathe, Chapter 2 Database Systems : A Practical Approach, Connolly/Begg, Chapters 1 and 2 (c) Stephen Mc Kearney, 2003. 1
More informationDatabase Management System Dr. S. Srinath Department of Computer Science & Engineering Indian Institute of Technology, Madras Lecture No.
Database Management System Dr. S. Srinath Department of Computer Science & Engineering Indian Institute of Technology, Madras Lecture No. # 13 Constraints & Triggers Hello and welcome to another session
More informationDefinitions. Database Architecture 1. Database Schema. Database Instance. Data Item (Schema Construct) The description of a database.
Architecture 1 References Fundamentals of Systems, Elmasri/Navathe, Chapter 2 Systems : A Practical Approach, Connolly/Begg, Chapters 1 and 2 Definitions The description of a database. Instance The data
More informationDATABASE MANAGEMENT SYSTEMS
www..com Code No: N0321/R07 Set No. 1 1. a) What is a Superkey? With an example, describe the difference between a candidate key and the primary key for a given relation? b) With an example, briefly describe
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 informationDatabase Systems. Course Administration
Database Systems ( ) September 20, 2004 Lecture #2 By Hao-hua Chu ( ) 1 Course Administration Can everyone get the textbook? HW #1 is out on the course homepage It is due one week from today. Next week
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 informationMWF 9:00-9:50AM & 12:00-12:50PM (ET)
Department of Mathematics and Computer Science Adelphi University Fall 2013 0145-443-001 Database Management Systems Dr. R. M. Siegfried 214 Post Hall (516)877-4482 siegfrie@adelphi.edu Office Hours Course
More informationCourse Design Document: IS202 Data Management. Version 4.5
Course Design Document: IS202 Data Management Version 4.5 Friday, October 1, 2010 Table of Content 1. Versions History... 4 2. Overview of the Data Management... 5 3. Output and Assessment Summary... 6
More informationRelational data model
Relational data model Iztok Savnik FAMNIT, 18/19 Why Study the Relational Model? Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. Legacy systems in older models E.G., IBM
More informationDBMS. Relational Model. Module Title?
Relational Model Why Study the Relational Model? Most widely used model currently. DB2,, MySQL, Oracle, PostgreSQL, SQLServer, Note: some Legacy systems use older models e.g., IBM s IMS Object-oriented
More informationDatabase Management System Dr. S. Srinath Department of Computer Science & Engineering Indian Institute of Technology, Madras Lecture No.
Database Management System Dr. S. Srinath Department of Computer Science & Engineering Indian Institute of Technology, Madras Lecture No. # 3 Relational Model Hello everyone, we have been looking into
More informationThe Relational Model
The Relational Model UVic C SC 370, Fall 2002 Daniel M. German Department of Computer Science University of Victoria 3 1 The Relational Model CSC 370 dmgerman@uvic.ca Overview How is data represented in
More informationIntroduction to DBMS
www.eazynotes.com Sabyasachi De Page No. 1 Introduction to DBMS As the name suggests, the database management system consists of two parts. They are: 1. Database and 2. Management System What is a Database?
More informationIntroduction Database Technology [DBTECO601]
Introduction Database Technology [DBTECO601] Thomas D. Devine http://www.noucamp.org thomas.devine@lyit.ie September 8, 2008 1 Contents 1 Document Information 4 2 Introduction 4 3 Traditional File-Based
More informationCOURSE OUTLINE. School of Engineering Technology and Applied Science
COURSE OUTLINE SCHOOL: School of Engineering Technology and Applied Science DEPARTMENT: PROGRAM: COURSE TITLE: Information and Communication Engineering Technology (ICET) Computer and Communication Networking
More informationThe Relational Data Model. Data Model
The Relational Data Model Davood Rafiei *Disclaimer: The slides used in the course may contain some of the slides provided by the authors of the adopted textbook (present and past) and those used in previous
More informationBBM371- Data Management. Lecture 1: Course policies, Introduction to DBMS
BBM371- Data Management Lecture 1: Course policies, Introduction to DBMS 26.09.2017 Today Introduction About the class Organization of this course Introduction to Database Management Systems (DBMS) About
More informationDatabase Management Systems MIT Lesson 01 - Introduction By S. Sabraz Nawaz
Database Management Systems MIT 22033 Lesson 01 - Introduction By S. Sabraz Nawaz Introduction A database management system (DBMS) is a software package designed to create and maintain databases (examples?)
More informationReview. The Relational Model. Glossary. Review. Data Models. Why Study the Relational Model? Why use a DBMS? OS provides RAM and disk
Review The Relational Model CS 186, Fall 2006, Lecture 2 R & G, Chap. 3 Why use a DBMS? OS provides RAM and disk Review Why use a DBMS? OS provides RAM and disk Concurrency Recovery Abstraction, Data Independence
More informationThe Relational Model. Chapter 3. Database Management Systems, R. Ramakrishnan and J. Gehrke 1
The Relational Model Chapter 3 Database Management Systems, R. Ramakrishnan and J. Gehrke 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc.
More informationPage 1. Goals for Today" What is a Database " Key Concept: Structured Data" CS162 Operating Systems and Systems Programming Lecture 13.
Goals for Today" CS162 Operating Systems and Systems Programming Lecture 13 Transactions" What is a database? Transactions Conflict serializability October 12, 2011 Anthony D. Joseph and Ion Stoica http://inst.eecs.berkeley.edu/~cs162
More informationAdministrivia. The Relational Model. Review. Review. Review. Some useful terms
Administrivia The Relational Model Ramakrishnan & Gehrke Chapter 3 Homework 0 is due next Thursday No discussion sections next Monday (Labor Day) Enrollment goal ~150, 118 currently enrolled, 47 on the
More informationNormalization in DBMS
Unit 4: Normalization 4.1. Need of Normalization (Consequences of Bad Design-Insert, Update & Delete Anomalies) 4.2. Normalization 4.2.1. First Normal Form 4.2.2. Second Normal Form 4.2.3. Third Normal
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 informationUNIT I. Introduction
UNIT I Introduction Objective To know the need for database system. To study about various data models. To understand the architecture of database system. To introduce Relational database system. Introduction
More informationObjectives Definition iti of terms Importance of data modeling Write good names and definitions for entities, relationships, and attributes Distinguis
Chapter 3: Modeling Data in the Organization Modern Database Management 9 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Heikki Topi 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Objectives
More informationFIT1004 Database Topic 2: Database Design Life Cycle
FIT1004 Database Topic 2: Database Design Life Cycle Learning Objectives: Describe the 3 level ANSI SPARC Database Architecture and the advantages which its inherent data abstraction provide to the database
More informationcourse 3 Levels of Database Design CSCI 403 Database Management Mines Courses ERD Attributes Entities title 9/26/2018
3 Levels of Database Design CSCI 403 Database Management 13 Database Modeling with Entity-Relationship Diagrams Conceptual (this lecture) Understand data entities & relationships between them Communication
More informationRelational Model. Topics. Relational Model. Why Study the Relational Model? Linda Wu (CMPT )
Topics Relational Model Linda Wu Relational model SQL language Integrity constraints ER to relational Views (CMPT 354 2004-2) Chapter 3 CMPT 354 2004-2 2 Why Study the Relational Model? Most widely used
More informationThe Relational Model of Data (ii)
ICS 321 Fall 2013 The Relational Model of Data (ii) Asst. Prof. Lipyeow Lim Information & Computer Science Department University of Hawaii at Manoa 1 Defining Relational Schema in SQL Two aspects: Data
More informationOutline. Databases and DBMS s. Recent Database Applications. Earlier Database Applications. CMPSCI445: Information Systems.
Outline CMPSCI445: Information Systems Overview of databases and DBMS s Course topics and requirements Yanlei Diao University of Massachusetts Amherst Databases and DBMS s Commercial DBMS s A database
More information5/23/2014. Limitations of File-based Approach. Limitations of File-based Approach CS235/CS334 DATABASE TECHNOLOGY CA 40%
CS235/CS334 DATABASE TECHNOLOGY CA 40% 3 TESTS EXAM 60% www.lechaamwe.weebly.com Lecture Notes Undergraduate CS235 and CS334 Introduction to Databases File-based Systems File-based systems were an early
More informationThe Relational Model. Chapter 3. Comp 521 Files and Databases Fall
The Relational Model Chapter 3 Comp 521 Files and Databases Fall 2012 1 Why Study the Relational Model? Most widely used model by industry. IBM, Informix, Microsoft, Oracle, Sybase, etc. It is simple,
More informationCSC 261/461 Database Systems. Fall 2017 MW 12:30 pm 1:45 pm CSB 601
CSC 261/461 Database Systems Fall 2017 MW 12:30 pm 1:45 pm CSB 601 Agenda Administrative aspects Brief overview of the course Introduction to databases and SQL ADMINISTRATIVE ASPECTS Teaching Staff Instructor:
More informationIntroduction to Data Management. Lecture #4 (E-R à Relational Design)
Introduction to Data Management Lecture #4 (E-R à Relational Design) Instructor: Mike Carey mjcarey@ics.uci.edu Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Announcements v Reminders:
More informationB.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1
Basic Concepts :- 1. What is Data? Data is a collection of facts from which conclusion may be drawn. In computer science, data is anything in a form suitable for use with a computer. Data is often distinguished
More informationCOMP Instructor: Dimitris Papadias WWW page:
COMP 5311 Instructor: Dimitris Papadias WWW page: http://www.cse.ust.hk/~dimitris/5311/5311.html Textbook Database System Concepts, A. Silberschatz, H. Korth, and S. Sudarshan. Reference Database Management
More informationCSC 407 Database System I COURSE PARTICULARS COURSE INSTRUCTORS COURSE DESCRIPTION
CSC 407 Database System I COURSE PARTICULARS Course Code: CSC 407 Course Title: Database System I No. of Units: 3 Course Duration: 2 hours of theory and 1 hour of tutorial per week for 14 weeks. Status:
More informationThe data structures of the relational model Attributes and domains Relation schemas and database schemas
The data structures of the relational model Attributes and domains Relation schemas and database schemas databases First normal form (1NF) Running Example Pubs-Drinkers-DB: Pubs (name, location) Drinkers
More informationConceptual Design. The Entity-Relationship (ER) Model
Conceptual Design. The Entity-Relationship (ER) Model CS430/630 Lecture 12 Slides based on Database Management Systems 3 rd ed, Ramakrishnan and Gehrke Database Design Overview Conceptual design The Entity-Relationship
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 informationEssay Question: Explain 4 different means by which constrains are represented in the Conceptual Data Model (CDM).
Question 1 Essay Question: Explain 4 different means by which constrains are represented in the Conceptual Data Model (CDM). By specifying participation conditions By specifying the degree of relationship
More informationIntroduction C H A P T E R1. Exercises
C H A P T E R1 Introduction Chapter 1 provides a general overview of the nature and purpose of database systems. The most important concept in this chapter is that database systems allow data to be treated
More informationChapter 11 Database Concepts
Chapter 11 Database Concepts INTRODUCTION Database is collection of interrelated data and database system is basically a computer based record keeping system. It contains the information about one particular
More information01/01/2017. Chapter 5: The Relational Data Model and Relational Database Constraints: Outline. Chapter 5: Relational Database Constraints
Chapter 5: The Relational Data Model and Relational Database Constraints: Outline Ramez Elmasri, Shamkant B. Navathe(2017) Fundamentals of Database Systems (7th Edition),pearson, isbn 10: 0-13-397077-9;isbn-13:978-0-13-397077-7.
More informationCHEME OF EXAMINATION FOR B.Sc. (COMPUTER SCIENCE) SEMESTER SYSTEM (Regular Course) w.e.f Scheme for B.Sc.-III.
CHEME OF EXAMINATION FOR B.Sc. (COMPUTER SCIENCE) SEMESTER SYSTEM (Regular Course) w.e.f. 2015-16 Scheme for B.Sc.-III Semester-V Sr. No. Paper Internal Assessment External Marks Exam Duration 1 Paper-I
More information