[PDF] Part I: Introduction to Databases Introduction to Database Concepts





Previous PDF Next PDF



Introduction to Databases

11/06/2018 Database = Data + Base the actual storage of all the information that are ... The very central concepts of relational databases are Tables ...



Part I: Introduction to Databases Introduction to Database Concepts

be well defined so that changes in some parts do not seriously influence others. 8. Introduction to Databases. Data Models. Q. A collection of tools for 



Database Concepts

In this chapter. » Introduction. » File System. » Database Management. System. » Relational Data Model. » Keys in a Relational. Database. Database. Concepts.



database-concepts.pdf

Relational database concepts in general. •. Concepts and terminology in Introduction to Oracle Database. •. The operating system environment under which you 



INTRODUCTION TO DBMS

Module1: (12 Hrs). Introduction to database Systems Basic concepts &Definitions



Introduction to Database Concepts

Introduction to Database Concepts. A Table with a View When we think of databases we often think ... A relational database describes the.



DATABASE MANAGEMENT SYSTEM (DBMS)

Data base System Concepts Silberschatz



Introduction to Database Systems Fundamental Concepts

the users of the database. • The schema of a db is held in the data dictionary. Data Model. • A set of concepts that can be used to describe the.



Wayne County Community College District

CIS 120 Introduction to Database Concepts. CREDIT HOURS: 3.00. CONTACT HOURS: 45.00. COURSE DESCRIPTION: This course is designed to introduce the student to 



Oracle Database Concepts

Oracle Database Concepts 11g Release 2 (11.2). E40540-04 Concepts and terminology in Chapter 1



[PDF] Introduction to Database Concepts - Everything Computer Science

Chapter 1 Introduction to Database Concepts 1 1 Databases and Database Systems A database management system (DBMS) is an aggregate of data hardware



[PDF] Introduction to Databases

11 jui 2018 · Take a look at the following file directories: The very central concepts of relational databases are Tables (Relations) Relationships



[PDF] Database Concepts - NCERT

7 1 INTRODUCTION After learning about importance of data in the previous chapter we need to explore the methods to store and manage data electronically



[PDF] Introduction to Database Concepts

Tables and Entities • A relational database describes the relationships among different kinds of data – Captures ideas like those defined in the Affinity



[PDF] database-conceptspdf - Oracle Help Center

This manual provides an architectural and conceptual overview of the Oracle database Concepts and terminology in Introduction to Oracle Database



[PDF] databasepdf

1 Part I: Introduction to Databases Kostis Sagonas 2 Introduction to Databases Introduction to Database Concepts Q Purpose of Database Systems



[PDF] Introduction to Database Systems Fundamental Concepts

1 Introduction to Database Systems Fundamental Concepts Werner Nutt (in relational data model) Instance DTDs specify the format of documents



[PDF] An Introduction to Database Systems 8e By C J Datepdf

Part V (eight chapters) shows how relational concepts are relevant to a variety of further aspects of database technology-security distributed databases 



(PDF) Database System: Concepts and Design - ResearchGate

PDF An organization must have accurate and reliable data for effective decision 1 Introduction to Database 1 1 Meaning and Definition of Database



[PDF] DATABASE MANAGEMENT SYSTEM (DBMS) - mrcetacin

records to the appropriate files Before database management systems (DBMSs) were introduced organizations usually stored information in such systems

:
1

Part I: Introduction to Databases

Kostis Sagonas

2Introduction to Databases

Introduction to Database Concepts

QPurpose of Database Systems

QView of Data

QData Models

QData Definition Language

QData Manipulation Language

3Introduction to Databases

Database Management System (DBMS)

QCollection of interrelated data

QSet of programs to access the data

QDBMS contains information about a particular enterprise QDBMS provides an environment that is both convenient and efficient to use.

QDatabase Applications:

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

QDatabases touch all aspects of our lives

4Introduction to Databases

Purpose of Database System

QIn the early days, database applications were built on top of file systems

QDrawbacks of using file systems to store data:

+Data redundancy and inconsistency Multiple file formats, duplication of information in different files +Difficulty in accessing data Need to write a new program to carry out each new task +Data isolation - multiple files and formats +Integrity problems Integrity constraints (e.g. account balance > 0) become part of program code Hard to add new constraints or change existing ones

5Introduction to Databases

Purpose of Database Systems (Cont.)

QDrawbacks of using file systems (cont.)

+Atomicity of updates Failures may leave database in an inconsistent state with partial updates carried out E.g. transfer of funds from one account to another should either complete or not happen at all +Concurrent access by multiple users

Concurrent accessed needed for performance

Uncontrolled concurrent accesses can lead to inconsistencies -E.g. two people reading a balance and updating it at the same time +Security problems QDatabase systems offer solutions to all the above problems

6Introduction to Databases

Levels of Abstraction

QPhysical level describes how a record (e.g., customer) is stored. QLogical level: describes data stored in database, and the relationships among the data. type customer = record name : string; street : string; city : integer; end; QView level: application programs hide details of data types. Views can also hide information (e.g., salary) for security purposes. 2

7Introduction to Databases

Instances and Schemas

QSimilar to types and variables in programming languages

QSchema - the logical structure of the database

+e.g., the database consists of information about a set of customers and accounts and the relationship between them) +Analogous to type information of a variable in a program +Physical schema: database design at the physical level +Logical schema: database design at the logical level QInstance - the actual content of the database at a particular point in time +Analogous to the value of a variable QPhysical Data Independence - the ability to modify the physical schema without changing the logical schema +Applications depend on the logical schema +In general, the interfaces between the various levels and components should be well defined so that changes in some parts do not seriously influence others.

8Introduction to Databases

Data Models

QA collection of tools for describing

+data +data relationships +data semantics +data constraints

QEntity-Relationship model

QRelational model

QOther models:

+object-oriented model +semi-structured data models +Older models: network model and hierarchical model

9Introduction to Databases

Entity-Relationship Model

Example of schema in the entity-relationship model

10Introduction to Databases

Entity Relationship Model (Cont.)

QE-R model of real world

+Entities (objects)

E.g. customers, accounts, bank branch

+Relationships between entities

E.g. Account A-101 is held by customer Johnson

Relationship set depositor associates customers with accounts

QWidely used for database design

+Database design in E-R model usually converted to design in the relational model (coming up next) which is used for storage and processing

11Introduction to Databases

Relational Model

QExample of tabular data in the relational model

customer- namecustomer-idcustomer- street customer- city account- number

Johnson

Smith

Johnson

Jones Smith

192-83-7465

019-28-3746

192-83-7465

321-12-3123

019-28-3746

Alma North Alma Main North

Palo Alto

Rye

Palo Alto

Harrison

Rye A-101 A-215 A-201 A-217 A-201

Attributes

12Introduction to Databases

A Sample Relational Database

3

13Introduction to Databases

Data Definition Language (DDL)

QSpecification notation for defining the database schema +E.g. create table account ( account-number char(10), balance integer) QDDL compiler generates a set of tables stored in a data dictionary QData dictionary contains metadata (i.e., data about data) + database schema +Data storage and definition language language in which the storage structure and access methods used by the database system are specified Usually an extension of the data definition language

14Introduction to Databases

Data Manipulation Language (DML)

QLanguage for accessing and manipulating the data organized by the appropriate data model +DML also known as query language

QTwo classes of languages

+Procedural - user specifies what data is required and how to get those data +Nonprocedural - user specifies what data is required without specifying how to get those data

QSQL is the most widely used query language

15Introduction to Databases

SQL

QSQL: widely used non-procedural language

+E.g. find the name of the customer with customer-id 192-83-7465 select customer.customer-name from customer where customer.customer-id = '192-83-7465" +E.g. find the balances of all accounts held by the customer with customer-id 192-83-7465 select account.balance from depositor, account where depositor.customer-id = '192-83-7465" and depositor.account-number = account.account-number QApplication programs generally access databases through +Language extensions that allow embedded SQL +Application program interfaces (e.g. ODBC/JDBC) which allow SQL queries to be sent to a database

Part II: The Relational Model

17Introduction to Databases

The Relational Model

QStructure of Relational Databases

QRelational Algebra

QTuple Relational Calculus

QDomain Relational Calculus

QExtended Relational-Algebra-Operations

QModification of the Database

QViews

18Introduction to Databases

Example of a Relation

4

19Introduction to Databases

Basic Structure

QFormally, given sets D1, D2, .... Dn a relation r is a subset of D1 x D2 x ... x DnThus a relation is a set of n-tuples (a1, a2, ..., an) where ai Î Di

QExample: if

customer-name = {Jones, Smith, Curry, Lindsay} customer-street = {Main, North, Park} customer-city = {Harrison, Rye, Pittsfield}

Then r = { (Jones, Main, Harrison),

(Smith, North, Rye), (Curry, North, Rye), (Lindsay, Park, Pittsfield)} is a relation over customer-name x customer-street x customer-city

20Introduction to Databases

Attribute Types

QEach attribute of a relation has a name

QThe set of allowed values for each attribute is called the domain of the attribute QAttribute values are (normally) required to be atomic, that is, indivisible +E.g. multivalued attribute values are not atomic +E.g. composite attribute values are not atomic

21Introduction to Databases

Relation Schema

QA1, A2, ..., An are attributes

QR = (A1, A2, ..., An ) is a relation schema

E.g. Customer-schema =

(customer-name, customer-street, customer-city)

Qr(R) is a relation on the relation schema R

E.g.customer (Customer-schema)

22Introduction to Databases

Relation Instance

QThe current values (relation instance) of a relation are specified by a table QAn element t of r is a tuple, represented by a row in a table Jones Smith Curry

Lindsay

customer-name Main North North Park customer-street

Harrison

Rye Rye

Pittsfield

customer-city customer attributes tuples

23Introduction to Databases

Relations are Unordered

Q Order of tuples is irrelevant (tuples may be stored in an arbitrary order)

Q E.g. account relation with unordered tuples

24Introduction to Databases

Database

QA database consists of multiple relations

QInformation about an enterprise is broken up into parts, with each relation storing one part of the information E.g.: account : stores information about accounts depositor : stores information about which customer owns which account customer : stores information about customers QStoring all information as a single relation such as bank(account-number, balance, customer-name, ..) results in +repetition of information (e.g. two customers own an account) +the need for null values (e.g. represent a customer without an account) QNormalization theory deals with how to design relational schemas 5

25Introduction to Databases

The customer Relation

26Introduction to Databases

The depositor Relation

27Introduction to Databases

E-R Diagram for the Banking Enterprise

28Introduction to Databases

Keys

QLet K Í R

QK is a superkey of R if values for K are sufficient to identify a unique tuple of each possible relation r(R) by "possible r" we mean a relation r that could exist in the enterprise we are modeling.

Example: {customer-name, customer-street} and

{customer-name} are both superkeys of Customer, if no two customers can possibly have the same name.

QK is a candidate key if K is minimal

Example: {customer-name} is a candidate key for Customer, since it is a superkey {assuming no two customers can possibly have the same name), and no subset of it is a superkey.

29Introduction to Databases

Determining Keys from E-R Sets

QStrong entity set. The primary key of the entity set becomes the primary key of the relation. QWeak entity set. The primary key of the relation consists of the union of the primary key of the strong entity set and the discriminator of the weak entity set. QRelationship set. The union of the primary keys of the related entity sets becomes a super key of the relation. +For binary many-to-one relationship sets, the primary key of the "many" entity set becomes the relation"s primary key. +For one-to-one relationship sets, the relation"s primary key can be that of either entity set. +For many-to-many relationship sets, the union of the primary keys becomes the relation"s primary key

30Introduction to Databases

Schema Diagram for the Banking Enterprise

6

31Introduction to Databases

Query Languages

QLanguage in which user requests information from the database.

QCategories of languages

+procedural +non-procedural

Q"Pure" languages:

+Relational Algebra +Tuple Relational Calculus +Domain Relational Calculus QPure languages form underlying basis of query languages that people use.

32Introduction to Databases

Relational Algebra

QProcedural language

QSix basic operators

+select +project +union +set difference +Cartesian product +rename QThe operators take two or more relations as inputs and give a new relation as a result.

33Introduction to Databases

Select Operation - Example

quotesdbs_dbs20.pdfusesText_26
[PDF] introduction to design patterns pdf

[PDF] introduction to digital filters pdf

[PDF] introduction to econometrics (3rd edition solutions chapter 2)

[PDF] introduction to econometrics (3rd edition solutions chapter 5)

[PDF] introduction to econometrics 3rd edition solutions chapter 3

[PDF] introduction to econometrics 3rd edition solutions chapter 4

[PDF] introduction to emu8086

[PDF] introduction to financial management questions and answers pdf

[PDF] introduction to financial statements pdf

[PDF] introduction to food and beverage service

[PDF] introduction to french pronunciation pdf

[PDF] introduction to functions pdf

[PDF] introduction to geographic information systems pdf

[PDF] introduction to geospatial science pdf

[PDF] introduction to gis and remote sensing pdf