Official Statistics - Relational Database Management Systems. Official Statistics - Relational Database Management Systems
|
|
- Alexander Wilkerson
- 5 years ago
- Views:
Transcription
1 Chapter 1 Database fundamentals 1.1. What is a database? A database is a stored collection of data designed for efficient information retrieval, efficient data maintenance and centralised control of an organisation's data 1.2. Database Structure A database contains one or more tables A table contains one or more records A record contains one or more fields A field is the smallest unit of data considered in a database If part of a field is used by itself it should be split into two fields, eg phone number - area code & number. All records in a table have the same structure, they are composed of the same fields however the field values differ from record to record. Examples: A college database would contain the following tables: Student table with one record for each student, each record would contain one field for each student detail recorded eg: Student_Number, Surname, Forename, Faculty, Department, Year, Enrolment_date. A stock/sales database could contain the following tables: Customer table containing fields such as Account_number, Name, Address, Phone, Balance, etc. Stock table, Order table, Invoice table, Credit Note table, Sales, Reps Table Section 1.3 Database Models Three different models: Hierarchical, Network, Relational. Most modern databases are Relational and that's what we'll concentrate on. The term relational stems from the fact that each record in the database contains information related to a single subject and only that subject. Also, data about two classes of information (such as customers and orders) can be manipulated as a single entity based on related data values. For example, it would be redundant to store customer name and address information with every order that the customer places. In a relational database system, the information about orders contains a field that stores data, such as a customer number, which can be used to connect each order with the appropriate customer information. In a relational database management system, sometimes called an RDBMS, the system manages all data in tables. Tables store information about a subject (such as customers or students) and have columns that contain the different kinds of information about the subject (for example, customers' or students' addresses) and rows that describe all the attributes of a single instance of the subject (for example, data on a specific customer or student). Even when you query the database (fetch information from one or more tables), the result is always something that looks like another table. 1 2
2 Section 1.4 Database Capabilities An RDBMS gives you complete control over how you define your data, work with it, and share it with others. The system also provides sophisticated features that make it easy to catalogue and manage large amounts of data in many tables. An RDBMS has three main types of capabilities: data definition, data manipulation, and data control. All this functionality is contained in MS Access. Data definition - You can define what data will be stored in your database, the type of data (for example, numbers or characters), and how the data is related. In some cases, you can also define how the data should be formatted and how it should be validated. Data manipulation - You can work with the data in many ways. You can select which data fields you want, filter the data, and sort it. You can join data with related information and summarise (total) the data. You can select a set of information and ask the RDBMS to update it, delete it, copy it to another table, or create a new table containing the data. Data control -You can define who is allowed to read, update, or insert data. In many cases, you can also define how data can be shared and updated by multiple users. Section 1.5 Some Relational Database Terminology Relation - Information about a single subject such as customers, orders, students, or colleges. A relation is usually stored as a table in a relational database management system. Attribute - A specific piece of information about a subject, such as the address for a customer or the amount of a contract. An attribute is normally stored as a data column, or field, in a table. Relationship - The way information in one relation is related to information in another relation. For example, customers have a one-to-many relationship with orders because one customer can place many orders, but any order belongs to only one customer. Secondary school students might have a many-to-many relationship with colleges because each student is interested in applying to multiple colleges, and each college receives applications from many students. Join - The process of linking tables or queries on tables via their related data values. For example, customers might be joined to orders by matching customer ID in a customers table and an orders table. You can also join information on related values from multiple tables or queries. For example, you can join student information with college application information to find out which students applied to which colleges. You can join employee information with contract information to find out which salesperson should receive a commission. 3 4
3 Section 1.6 Rules governing database structures An attribute's domain is the set of all possible values for that attribute. Every attribute value must belong to that attribute's domain. For example student_age must have a domain like [13, 110] even though most students in a college will be in the interval [17, 27] To be a relation a table must have the following three properties: a. No two rows can be the same, every row in a table must have a unique attribute or group of attribute values that distinguish it from all other rows in the table. This attribute or group of attributes will act as a primary key for the table. b. Each attribute must have a unique name, becaues attribute names identify attributes. c. The order of rows and attributes must not be significant. Section 1.7 Keys Primary keys A primary key is an attribute or a group of attributes whose value uniquely identifies each row in the table. A primary key has the following three properties: 1. It uniquely identifies each record in a table. No two records have the same primary key value. 2. Each record has a primary key value, ie it is never NULL. 3. A primary key is MINIMAL, ie no subset of its attributes is also a primary key. A key which consists of a single attribute is called a simple key. Often a relation's primary key is made up of more than one attribute. This is either a compound key or a composite key. Let's look at an example to illustrate the difference: Example of a Compound Key: A consulting company works on several database projects. The table below records data on consultant's time: Consultant # Project # Role Time 003 C232 Leader C771 Analyst A152 Interviewer C771 Leader 20.0 In this example no single attribute can act as a primary key. A consultant can work on many projects and projects may have many consultants assigned. The combination of Consultant # and Project # can uniquely identify a row. 5 6
4 Example of a Composite Key: Projects can have many activities Project # Activity # Start Week End Week C C C Again in this example no single attribute can act as a primary key. The combination of Project # and Activity # can uniquely identify a row. The difference between this and the previous example is that Activity # on its own is not meaningful it needs to be combined with Project # to make sense Foreign Keys A Foreign Key is an attribute in one table which is a primary key in another table. This is the way that records are related in a Relational Database. Below are two table schemes with primary keys underlined and foreign keys denoted by an asterix Project = Project # + Project Description + Project Type + * Client # Secondary (Alternate, Logical) Key A Secondary Key is an alternative way to find a record, it is often used when the value of the primary key is unknown. It does not need the properties of a primary key. eg Employee_Name instead of Employee_# 1.8 Information retrieval Information and Data are not the same. Information is Meaningful data. Summaries of data usually become information. Retrieval is concerned with getting information out of the database, the main kinds are: On-line Queries Reports On-line database services via a link eg accessing a DB on the WWW. Retrieval usually requires specification of 1. The tables to retrieve from 2. The fields to retreive from selected tables 3. Criteria to select a subset of the records. There are many retrieval features: SORT reports. SUMMARISE reports. CRITERIA to restrict selections. RESTRICT OUTPUT fields. (by date, name etc) (Totals, averages etc.) (beginning date - end date) (show names not addresses) Client = Client # + Name + Business Type 7 8
5 1.9 Relational Algebra Selection: Subset of records from a table Projection: Subset of fields from a table Union: Combine all records from two tables, tables must have same fields. Intersection: Collection of all records which are in both tables. Tables are normally stored on disks. But some tables may only exist in memory (RAM) for the duration of a process. These tables which are usually the result of some relational algebra operation are called virtual tables ( or views, queries or dynasets) Data Maintenance Data maintenance is keeping the data in the DB up to date and is considered the biggest chore in using a database. Most incorrect data in a database is due to entry errors. In building a database you must try to anticipate as many errors as possible and guard against them using referential integrity, domain look-up tables, validation rules, input masks etc. There are three main activities in Data Maintenance: Adding a new record Changing values in an existing records fields Deleting an existing record Referential Integrity Probably THE MOST IMPORTANT aspect of a database, however ignored by many database designers. (Database design unlike many other areas of IT is populated by amateurs and this leads to some really shoddy work.) Referential Integrity concerns cross-references between tables. Foreign keys are the only way to cross-reference tables in a relational database. A database has referential integrity IFF each foreign key value has a matching primary key value in the related table Integrity Constraints Integrity constraints are rules to ensure that a database retains its refereential integrity when changes are made. Integrity constraints ensure that either A change is not allowed if referential integrity would be lost or Appropriate follow-on changes are made to other tables so that integrity is preserved. The three types of integrity constraints and their effect when deleting a record whose primary key value occurs as a foreign key value in another table are: 1. Restrict Deletion is not allowed if the primary key value occurs as a foreign key value in another table 2. Cascade Immediately after a record is deleted, delete each record in the other database tables which has the deleted primary key as a foreign key. 3.Nulllify Immediately after a record is deleted, search for each record in the other database tables which has the deleted primary key as a foreign key and replace all the foreign keys with NULL values. Nullify is an unsatisfactory solution! 9 10
6 1.11 Order Physical Order A table is in physical/natural order if record number 1 is first, record 2 second etc. Records are always entered into a table in physical/natural order, new records being added to the end of the table and assigned the next highest record number. When a record is deleted subsequent records are re-numbered so that there's no gap in the numbering sequence Indices An index controls the sequence in which records are used. Indices have two man purposes: 1. For retrieving records in an order, eg alphabetical order 2. For fast access to a record, eg to quickly find a student with student number in a table with 100,000 present and past UCD students Indexes use very fast B-Tree methods not just sequential search methods. ASCII - American Standard Code for Information Interchange 1.12 RDBMS A Relational Database Management System is software to manage a database eg Oracle, Ingres, Informix, Sybase, SQL Server, Access A RDBMS usually includes SQL and a 4GL RDBMS usually feature: Easy to implement database design structures, indices etc. Triggers: When one event occurs a sequence of other events begins Helps to preserve Referential Integrity Transaction Processing Contention Prevention Automatically decides best methods for accessing data etc without users noticing Includes data entry validation features Most RDBMS do not have full automatic checking of referential integrity, programmers must ensure the preservation of Referential Integrity Transaction processing A transaction updates several tables in one chain of events. ROLLBACK - If a transaction goes wrong, undo it by playing it backwards to return to the original state. COMMIT - When a transaction has been successfully completed, permanently commit the updates to the database
7 Contention prevention Contention means problems due to several users trying to access the same data. This can be avoided using: FILE LOCK While one user accesses a table it is inaccessible to other users RECORD LOCK While one user accesses a record it is inaccessible to other users DIRTY READ Permit Reading data even if another user is also using it SQL Structured Query Language used in Relational DBs for information retrieval. 1. GUEST LECTURE FRIDAY 14 th Dr. K Mc Daid Example: SELECT SUM(price) FROM invoice WHERE cust = "731" GL 4 th Generation Language C ++, Visual Basic etc. allows Form, Report designs without writing 3gl programmes. A Form is a screen to make data entry and record viewing easier. Many Forms designed to look like office paper. A Report is typically columns of data, including headings, page numbers calculated fields and groupings. 2. Times for Computer Labs in ACCESS 13 14
8 Chapter 2 Setting up a Database When designing a database the first task one is faced with is to construct tables and relationships, there are some techniques which will help with this. 2.1 Normalisation This is a a transformation of complex data structures into simple tables or relations. It is a process of removing all data redundancy from a design. Data redundancy is defined as the storing of a fact more than once. A fact is an association of two data values, eg: ID#: 001, Name: John Smith Storing customer's names in a table of invoices as well as in a customer table would be redundant. Normalisation gets at the underlying logical dependencies between data elements, just because data appears together on a physical form does not mean they are part of the same grouping. 2.3 Example Below is a screen for a program to enter details for a new consultant onto the system of a consultancy firm. We will apply the normalisation procedure to this example. CONSULTANT DETAILS Cons No. Name Grade Salary Car Type 019 Murphy A1 S1 A Address: 1 South Avenue Abbingdon 0X2 3BH Code Description Qualifications SK01 C ++ BSc SK15 SSADM NCEA Cert SK10 CAD/CAM 3 Years 2.2 Normalisation Steps There are 6 steps involved in the process of normalising a database. Write the data of each source in an Un-Normalised form (UNF) notation. Convert the UNF into 1 st Normal form (1NF) Convert the 1NF into 2 nd Normal form (2NF) Convert the 2NF into 3 rd Normal form (3NF) Optimise the 3NF relations Apply the 3NF tests 15 16
9 2.3.1 Write data in UNF This stage requires 2 steps. A. Identify a primary key In an employee table a good key would be employee number or RSI number In general we should choose a primary key to be the shortest possible the least changeable the most meaningful to others the least number of attributes B. Write as a UNF Relation Notation: The primary key is underlined and braces enclose repeating data structures. Consultant = Car Type + { Skill Description + Qualification} Convert to 1 st Normal Form To transform from UNF to 1NF: 1. Remove any repeating structures from the UNF 2. Create a new relation for each such removed structure 3. Copy the primary key of the UNF relation into the new relation 4. Decide the primary key of the new relation UNF 1NF 2NF 3NF Car Type + { Skill Description + Qualification} Car Type Skill Description + Qualification Note: Composite keys are enclosed in parentheses in order to associate the qualified attributes with the qualifying attributes. Invisible data may also appear in the output data structure, eg the colour of a form, shaped holes on a ticket to indicate whether it is checked or not
10 2.3.3 Convert to 2 nd Normal Form To transform from 1NF to 2NF: Remove any part key dependencies. This is achieved by examining relations which have a compound or composite key. For each non-key attribute in the relation we ask "Does this attribute depend on the whole key or only part of it?" When part key dependencies are identified in a 1NF relation the attributes involved are moved to a new relation. UNF 1NF 2NF 3NF Car Type + { Skill Description + Qualification} Car Type Car Type Skill Description + Qualification Qualification Skill Description Convert to 3 rd Normal Form To transform from 2NF to 3NF, this is similar to the previous step. Here we examine all dependencies between attributes including key attributes. We ask "Does attribute A determine attribute B?" The dependent attribute is removed from the 2NF relation to form a new relation whose key is the determinant attribute. The determinant attribute also stays in the original 2NF relation as a foreign key shown with an asterix *. UNF 1NF 2NF 3NF Car Type Car Type Skill Description + Qualification Qualification Skill Description * Car Type Salary Scale Qualification Skill Description 19 20
11 2.3.5 Optimisation Optimisation comprises combining relations which have exactly the same key Apply the 3NF tests It is possible that data inter-dependencies have been introduced, so we must check the following: Given a value for the primary key of a relation, is there only one possible value for each of the associated attributes? Is each attribute directly dependent on the full key? Normalisation was developed by Dr. Codd of IBM in the 70's. "In perfectly normalised data, each attribute in a relation must depend on: the key, the whole key, and nothing but the key (so help me Codd)." Normalised data takes up the minimum of storage space however the use of foreign keys means a lot of cross referencing and so sometimes we de-normalise before implementing a database. Chapter 3 Logical Data Structures 3.1 Components of a LDS Entities 1. An entity is a collection of occurences of things about which the organisation stores information 2. The information on each entity occurrence is stored as logical groups of attributes 3. A Primary key exists or could be made which identifies each occurrence A Rectangular Box represents an entity Relationships A relationship is an association between two entities that models operational or business rules. 3.2 Degree of Relationship There are three possible degrees for a relationship: 1:1 - one to one 1:M - one to many M:N - Many to Many Question: what is the degree of the relationship between each of the following pairs of entities: Customer to Invoice Student to Subject Doctor to Patient Invoice to Product Employee to Department 21 22
12 3.3 Developing an LDS 1. Identify initial entities 2. Identify direct business/operational relationships between entities and determine degree of each relationship 3. Identify Operational Masters 4. Construct initial diagram 5. Identify additional characteristics of relationships 6. Resolve M:N and 1:1 relationships 7. Rationalise the LDS 8. Validate the LDS Identify initial entities Typical entities are Doers of operations (staff, departments etc) Records of operations (invoices, bookings etc) Domain look-up lists (countries, grades, course types etc) Identify Operational Masters Data can always be accessed in relations using the keys of the relation but sometimes it is necessary to access data using attributes other than keys. These non-key methods are called Operational Masters and are represented by an OVAL. An example would be that sometimes it is necessary to retrieve an employee by their name and not just their employee number. We need to investigate the types of access required and the types of groupings required for output Resolve M:N and 1:1 relationships M:N relationships cannot be implemented directly in a database and we need to insert linking entities. Example: athletes enter many events 1:1 relationships mean that the same entity has been included two ways Additional Relationship Features Entities are Master or Detail EX: Patient may be Detail of Ward and also of Doctor Participation is Mandatory or Optional EX: Political Parties and TD's Relationships can be Recursive EX: Employees supervise other Employees Relationships can be Multiple EX: Student is currently in a Department Student was previously in a Department Relationships can be exclusive EX: Customer pays by cash or credit not both 23 24
13 25
Relational Database Components
Relational Database Components Chapter 2 Class 01: Relational Database Components 1 Class 01: Relational Database Components 2 Conceptual Database Design Components Class 01: Relational Database Components
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 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 informationTHE RELATIONAL DATABASE MODEL
THE RELATIONAL DATABASE MODEL Introduction to relational DB Basic Objects of relational model Properties of relation Representation of ER model to relation Keys Relational Integrity Rules Functional Dependencies
More informationGUJARAT TECHNOLOGICAL UNIVERSITY
Seat No.: Enrolment No. GUJARAT TECHNOLOGICAL UNIVERSITY BE - SEMESTER III (NEW) - EXAMINATION SUMMER 2017 Subject Code: 21303 Date: 02/06/2017 Subject Name: Database Management Systems Time: 10:30 AM
More informationB.C.A DATA BASE MANAGEMENT SYSTEM MODULE SPECIFICATION SHEET. Course Outline
B.C.A 2017-18 DATA BASE MANAGEMENT SYSTEM Course Outline MODULE SPECIFICATION SHEET This course introduces the fundamental concepts necessary for designing, using and implementing database systems and
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 informationA Flat file database. Problems with a flat file database (data redundancy)
Data capture Before you can create a database, you need to collect data. This is known as data capture. One of the most common ways is to use and optical mark reader (OMR). An OMR sensor is used for marking
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 informationModern Systems Analysis and Design
Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Designing Databases Learning Objectives Concisely define each of the following key database design terms:
More informationLecture 5 STRUCTURED ANALYSIS. PB007 So(ware Engineering I Faculty of Informa:cs, Masaryk University Fall Bühnová, Sochor, Ráček
Lecture 5 STRUCTURED ANALYSIS PB007 So(ware Engineering I Faculty of Informa:cs, Masaryk University Fall 2015 1 Outline ² Yourdon Modern Structured Analysis (YMSA) Context diagram (CD) Data flow diagram
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 informationCS530 Database Architecture Models. Database Model. Prof. Ian HORROCKS. Dr. Robert STEVENS. and Design The Relational
02 - The Relational Database Model CS530 Database Architecture Models and Design Prof. Ian HORROCKS Dr. Robert STEVENS In this Section Topics Covered The basics of the relational model in the context of
More informationChapter 3B Objectives. Relational Set Operators. Relational Set Operators. Relational Algebra Operations
Chapter 3B Objectives Relational Set Operators Learn About relational database operators SELECT & DIFFERENCE PROJECT & JOIN UNION PRODUCT INTERSECT DIVIDE The Database Meta Objects the data dictionary
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 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 informationTest Bank for A Guide to SQL 9th Edition by Pratt
Test Bank for A Guide to SQL 9th Edition by Pratt Link full download: https://testbankservice.com/download/test-bank-for-a-guideto-sql-9th-edition-by-pratt Chapter 2: Database Design Fundamentals True
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 informationIntroduction to Databases
Introduction to Databases Abou Bakar Kaleem 1 Overview - Database - Relational Databases - Introduction to SQL Introduction to Databases 2 1 Database (1) Database : - is a collection of related data -
More informationSQA Advanced Unit Specification: general information. Relational Database Management Systems
: general information Unit title: Relational Database Management Systems Unit code: HP2J 48 Superclass: CB Publication date: August 2017 Source: Scottish Qualifications Authority Version: 01 Unit purpose
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 informationChapter. Relational Database Concepts COPYRIGHTED MATERIAL
Chapter Relational Database Concepts 1 COPYRIGHTED MATERIAL Every organization has data that needs to be collected, managed, and analyzed. A relational database fulfills these needs. Along with the powerful
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 informationInterview Questions on DBMS and SQL [Compiled by M V Kamal, Associate Professor, CSE Dept]
Interview Questions on DBMS and SQL [Compiled by M V Kamal, Associate Professor, CSE Dept] 1. What is DBMS? A Database Management System (DBMS) is a program that controls creation, maintenance and use
More informationChapter 2. DB2 concepts
4960ch02qxd 10/6/2000 7:20 AM Page 37 DB2 concepts Chapter 2 Structured query language 38 DB2 data structures 40 Enforcing business rules 49 DB2 system structures 52 Application processes and transactions
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 informationToday Learning outcomes LO2
2015 2016 Phil Smith Today Learning outcomes LO2 On successful completion of this unit you will: 1. Be able to design and implement relational database systems. 2. Requirements. 3. User Interface. I am
More informationChapter 5. The Relational Data Model and Relational Database Constraints. Slide 5-١. Copyright 2007 Ramez Elmasri and Shamkant B.
Slide 5-١ Chapter 5 The Relational Data Model and Relational Database Constraints Chapter Outline Relational Model Concepts Relational Model Constraints and Relational Database Schemas Update Operations
More informationCopyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 5-1
Slide 5-1 Chapter 5 The Relational Data Model and Relational Database Constraints Chapter Outline Relational Model Concepts Relational Model Constraints and Relational Database Schemas Update Operations
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 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 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 informationLet s briefly review important EER inheritance concepts
Let s briefly review important EER inheritance concepts 1 is-a relationship Copyright (c) 2011 Pearson Education 2 Basic Constraints Partial / Disjoint: Single line / d in circle Each entity can be an
More informationChapter 2 Introduction to Relational Models
CMSC 461, Database Management Systems Spring 2018 Chapter 2 Introduction to Relational Models These slides are based on Database System Concepts book and slides, 6th edition, and the 2009 CMSC 461 slides
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 informationDetailed Data Modelling: Attribute Collection and Normalisation of Data
Detailed Data Modelling IMS1002 /CSE1205 Systems Analysis and Design Detailed Data Modelling: Attribute Collection and Normalisation of Data The objective of detailed data modelling is to develop a detailed
More informationHigher National Unit specification: general information. Relational Database Management Systems
Higher National Unit specification: general information Unit code: H16W 35 Superclass: CB Publication date: March 2012 Source: Scottish Qualifications Authority Version: 01 Unit purpose This Unit is designed
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 informationTeaching Scheme BIT/MMC/BCS Database Systems 1
Teaching Scheme BIT/MMC/BCS Database Systems 1 Level : 1 Year : 2000 2001 Konstantina Lepinioti (tlepinio@bournemouth.ac.uk) Melanie Coles (mcoles@bournemouth.ac.uk) Autumn Term Week Lecture Seminar/Lab
More informationDatabase Systems: Design, Implementation, and Management Tenth Edition. Chapter 7 Introduction to Structured Query Language (SQL)
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 7 Introduction to Structured Query Language (SQL) Objectives In this chapter, students will learn: The basic commands and
More informationData analysis and design Unit number: 23 Level: 5 Credit value: 15 Guided learning hours: 60 Unit reference number: H/601/1991.
Unit title: Data analysis and design Unit number: 23 Level: 5 Credit value: 15 Guided learning hours: 60 Unit reference number: H/601/1991 UNIT AIM AND PURPOSE The aim of this unit is to equip learners
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 informationDBMS Questions for IBPS Bank Exam
DBMS Questions for IBPS Bank Exam DBMS Questions for IBPS Bank Exam - In this article, we provided the study material of DBMS for the IBPS exam.you can answer the question based on topic. Candidate those
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 informationBIRKBECK (University of London)
BIRKBECK (University of London) BSc Examination for Internal Students School of Computer Science and Information Systems Database Management COIY028U - Course Unit Value: 1/2 May 2006 : Afternoon 14.30
More informationChapter 7. Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel
Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel 1 In this chapter, you will learn: The basic commands
More informationThe Relational Data Model and Relational Database Constraints
CHAPTER 5 The Relational Data Model and Relational Database Constraints Copyright 2017 Ramez Elmasri and Shamkant B. Navathe Slide 1-2 Chapter Outline Relational Model Concepts Relational Model Constraints
More information1. The process of determining the particular tables and columns that will comprise a database is known as database design.
True / False 1. The process of determining the particular tables and columns that will comprise a database is known as database design. REFERENCES: 21 2. A tabular database is a collection of tables. REFERENCES:
More informationDatabase Systems. Overview - important points. Lecture 5. Some introductory information ERD diagrams Normalization Other stuff 08/03/2015
Lecture 5 Database Systems Instructor: M.Imran Khalil Imrankhalil3@gmail.com Resource:Imrankhalil3.wordpress.com University of Sargodha Canal Campus Lahore Overview - important points Some introductory
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 informationRelational Model. Rab Nawaz Jadoon DCS. Assistant Professor. Department of Computer Science. COMSATS IIT, Abbottabad Pakistan
Relational Model DCS COMSATS Institute of Information Technology Rab Nawaz Jadoon Assistant Professor COMSATS IIT, Abbottabad Pakistan Management Information Systems (MIS) Relational Model Relational Data
More informationCOSC344 Database Theory and Applications. σ a= c (P) Lecture 3 The Relational Data. Model. π A, COSC344 Lecture 3 1
COSC344 Database Theory and Applications σ a= c (P) S P Lecture 3 The Relational Data π A, C (H) Model COSC344 Lecture 3 1 Overview Last Lecture Database design ER modelling This Lecture Relational model
More informationTest Bank For A Guide To Mysql 1st Edition By Pratt And Last
Test Bank For A Guide To Mysql 1st Edition By Pratt And Last Link full download test bank: https://digitalcontentmarket.org/download/test-bank-for-a-guide-to-mysql-1st-edition-bypratt-and-last/ Link full
More informationDatabase Management System 9
Database Management System 9 School of Computer Engineering, KIIT University 9.1 Relational data model is the primary data model for commercial data- processing applications A relational database consists
More informationLink download full of Solution Manual:
Test Bank for A Guide to MySQL 1st Edition by Pratt and Last Link download full: http://testbankair.com/download/test-bank-for-a-guide-to-mysql-1st-edition-by-prattand-last/ Link download full of Solution
More informationBrief History of SQL. Relational Database Management System. Popular Databases
Brief History of SQL In 1970, Dr. E.F. Codd published "A Relational Model of Data for Large Shared Data Banks," an article that outlined a model for storing and manipulating data using tables. Shortly
More information(ADVANCED) DATABASE SYSTEMS (DATABASE MANAGEMENTS) PROF. DR. HASAN HÜSEYİN BALIK (6 TH WEEK)
(ADVANCED) DATABASE SYSTEMS (DATABASE MANAGEMENTS) PROF. DR. HASAN HÜSEYİN BALIK (6 TH WEEK) 4. OUTLINE 4. Implementation 4.1 Introduction to SQL 4.2 Advanced SQL 4.3 Database Application Development 4.4
More informationch02 True/False Indicate whether the statement is true or false.
ch02 True/False Indicate whether the statement is true or false. 1. The process of determining the particular tables and columns that will comprise a database is known as database design. 2. A tabular
More informationnormalization are being violated o Apply the rule of Third Normal Form to resolve a violation in the model
Database Design Section1 - Introduction 1-1 Introduction to the Oracle Academy o Give examples of jobs, salaries, and opportunities that are possible by participating in the Academy. o Explain how your
More informationCopyright 2016 Ramez Elmasr and Shamkant B. Navathei
CHAPTER 3 Data Modeling Using the Entity-Relationship (ER) Model Slide 1-2 Chapter Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes
More informationChapter 5. Relational Model Concepts 5/2/2008. Chapter Outline. Relational Database Constraints
Chapter 5 The Relational Data Model and Relational Database Constraints Copyright 2004 Pearson Education, Inc. Chapter Outline Relational Model Concepts Relational Model Constraints and Relational Database
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 informationConceptual Data Models for Database Design
Conceptual Data Models for Database Design Entity Relationship (ER) Model The most popular high-level conceptual data model is the ER model. It is frequently used for the conceptual design of database
More informationTMA01 Fall 2011 (Cut-off date 8 Dec 2011)
M359 Relational databases: theory and practice TMA01 Fall 2011 (Cut-off date 8 Dec 2011) 1. Rules and Guidelines This section contains general rules and guidelines for completing and submitting your TMA.
More informationChapter 5. Relational Model Concepts 9/4/2012. Chapter Outline. The Relational Data Model and Relational Database Constraints
Chapter 5 The Relational Data Model and Relational Database Constraints Copyright 2004 Pearson Education, Inc. Chapter Outline Relational Model Constraints and Relational Database Schemas Update Operations
More informationEntity Attribute STUDENT TABLE tuples single domain
Objectives Computer Science 202 Database Systems: Relational Database Model To learn the basic relational database components and concepts. To become familiar with the relational table's components and
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. # 5 Structured Query Language Hello and greetings. In the ongoing
More informationU1. Data Base Management System (DBMS) Unit -1. MCA 203, Data Base Management System
Data Base Management System (DBMS) Unit -1 New Delhi-63,By Vaibhav Singhal, Asst. Professor U2.1 1 Data Base Management System Data: Data is the basic raw,fact and figures Ex: a name, a digit, a picture
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 informationDatabase Design Process
Database Design Process Real World Functional Requirements Requirements Analysis Database Requirements Functional Analysis Access Specifications Application Pgm Design E-R Modeling Choice of a DBMS Data
More informationDATABASE MANAGEMENT SYSTEMS. UNIT I Introduction to Database Systems
DATABASE MANAGEMENT SYSTEMS UNIT I Introduction to Database Systems Terminology Data = known facts that can be recorded Database (DB) = logically coherent collection of related data with some inherent
More informationDatabases. Dr. Richard E. Turner March 5, 2013
Databases Dr. Richard E. Turner (ret26@cam.ac.uk) March 5, 2013 Big-data: Databases Database = structured collection of data Everywhere: Facebook, MySpace, Google, Android (sqlite3), Amazon,... Amazon
More informationSQL functions fit into two broad categories: Data definition language Data manipulation language
Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 7 Beginning Structured Query Language (SQL) MDM NUR RAZIA BINTI MOHD SURADI 019-3932846 razia@unisel.edu.my
More informationEntity Relationship Diagrams and Relational DBs
Entity Relationship Diagrams and Relational DBs BSAD 4 Dave Novak Topics Covered ERD (entity relationship diagram) Data Modeling Entity vs- Entity set Attribute vs- Relationship Types of attributes and
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 informationPES Institute of Technology Bangalore South Campus (1 K.M before Electronic City,Bangalore ) Department of MCA. Solution Set - Test-II
PES Institute of Technology Bangalore South Campus (1 K.M before Electronic City,Bangalore 560100 ) Solution Set - Test-II Sub: Database Management Systems 16MCA23 Date: 04/04/2017 Sem & Section:II Duration:
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 information6 February 2014 CSE-3421M Test #1 w/ answers p. 1 of 14. CSE-3421M Test #1. Design
6 February 2014 CSE-3421M Test #1 w/ answers p. 1 of 14 CSE-3421M Test #1 Design Sur / Last Name: Given / First Name: Student ID: Instructor: Parke Godfrey Exam Duration: 75 minutes Term: Winter 2014 Answer
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 informationDatabase Management System (15ECSC208) UNIT I: Chapter 2: Relational Data Model and Relational Algebra
Database Management System (15ECSC208) UNIT I: Chapter 2: Relational Data Model and Relational Algebra Relational Data Model and Relational Constraints Part 1 A simplified diagram to illustrate the main
More informationTest bank for accounting information systems 1st edition by richardson chang and smith
Test bank for accounting information systems 1st edition by richardson chang and smith Chapter 04 Relational Databases and Enterprise Systems True / False Questions 1. Three types of data models used today
More informationCS 146 Database Systems
DBMS CS 146 Database Systems Entity-Relationship (ER) Model CS 146 1 CS 146 2 A little history Progression of Database Systems In DBMS: single instance of data maintained and accessed by different users
More informationInformation Systems Development COMM005 (CSM03) Autumn Semester 2009
Information Systems Development COMM005 (CSM03) Autumn Semester 2009 Dr. Jonathan Y. Clark Email: j.y.clark@surrey.ac.uk Course Website: www.computing.surrey.ac.uk/courses/csm03/isdmain.htm Slide 1 Adapted
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 information! Define terms. ! Interpret history and role of SQL. ! Write single table queries using SQL. ! Establish referential integrity using SQL
OBJECTIVES CHAPTER 6: INTRODUCTION TO SQL Modern Database Management 11 th Edition Jeffrey A. Hoffer, V. Ramesh, Heikki Topi! Define terms! Interpret history and role of SQL! Define a database using SQL
More informationBTEC Nationals IT - Unit2 FAQs
BTEC Nationals IT - Unit2 FAQs Q1 Q2 I need more clarity on what is required in the design task Is it expected that the race officials are entering times as raw times and then the table is set up so it
More informationEE221 Databases Practicals Manual
EE221 Databases Practicals Manual Lab 1 An Introduction to SQL Lab 2 Database Creation and Querying using SQL Assignment Data Analysis, Database Design, Implementation and Relation Normalisation School
More informationCS313D: ADVANCED PROGRAMMING LANGUAGE
CS313D: ADVANCED PROGRAMMING LANGUAGE Computer Science department Lecture 11: Connection to Databases Lecture Contents 2 What is a database? Relational databases Cases study: A Books Database Querying
More informationDATABASE DEVELOPMENT (H4)
IMIS HIGHER DIPLOMA QUALIFICATIONS DATABASE DEVELOPMENT (H4) December 2017 10:00hrs 13:00hrs DURATION: 3 HOURS Candidates should answer ALL the questions in Part A and THREE of the five questions in Part
More informationSECTION 1 DBMS LAB 1.0 INTRODUCTION 1.1 OBJECTIVES 1.2 INTRODUCTION TO MS-ACCESS. Structure Page No.
SECTION 1 DBMS LAB DBMS Lab Structure Page No. 1.0 Introduction 05 1.1 Objectives 05 1.2 Introduction to MS-Access 05 1.3 Database Creation 13 1.4 Use of DBMS Tools/ Client-Server Mode 15 1.5 Forms and
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 informationChapter 3: The Relational Database Model
Chapter 3: The Relational Database Model Student: 1. The practical significance of taking the logical view of a database is that it serves as a reminder of the simple file concept of data storage. 2. You
More informationData Modeling Using the Entity-Relationship (ER) Model
CHAPTER 3 Data Modeling Using the Entity-Relationship (ER) Model Copyright 2017 Ramez Elmasri and Shamkant B. Navathe Slide 1-1 Chapter Outline Overview of Database Design Process Example Database Application
More informationAnalytics: Server Architect (Siebel 7.7)
Analytics: Server Architect (Siebel 7.7) Student Guide June 2005 Part # 10PO2-ASAS-07710 D44608GC10 Edition 1.0 D44917 Copyright 2005, 2006, Oracle. All rights reserved. Disclaimer This document contains
More informationLogical Database Design. ICT285 Databases: Topic 06
Logical Database Design ICT285 Databases: Topic 06 1. What is Logical Database Design? Why bother? Bad logical database design results in bad physical database design, and generally results in poor database
More informationOverview of Database Design Process. Data Modeling Using the Entity- Relationship (ER) Model. Two main activities:
1 / 14 Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes Entity Types, Value Sets, and Key Attributes Relationships and Relationship Types
More informationA. It executes successfully and displays rows in the descending order of PROMO_CATEGORY.
Volume: 75 Questions Question No: 1 Evaluate the following SQL statement: Which statement is true regarding the outcome of the above query? A. It executes successfully and displays rows in the descending
More informationG64DBS Database Systems. Lecture 7 SQL SELECT. The Data Dictionary. Data Dictionaries. Different Sections of SQL (DDL) Different Sections of SQL (DCL)
G64DBS Database Systems Lecture 7 SQL SELECT Tim Brailsford Different Sections of SQL (DDL) The Data Definition Language (DDL): CREATE TABLE - creates a new database table ALTER TABLE - alters (changes)
More informationIGCSE Information Communication Technology (ICT) Syllabus code Section 5: Data types
IGCSE Information Communication Technology (ICT) Syllabus code 0417 Section 5: Data types At the end of this Unit students will be able to: (a) identify different data types: logical/boolean, alphanumeric/text,
More informationIntroductory SQL SQL Joins: Viewing Relationships Pg 1
Introductory SQL SQL Joins: Viewing Relationships Pg 1 SQL Joins: Viewing Relationships Ray Lockwood Points: The relational model uses foreign keys to establish relationships between tables. SQL uses Joins
More information