mis 3150 data and info management lecture 1 - database fundamentals

29
MIS 3150 Data and Info Management Lecture 1 - Database fundamentals Arijit Sengupta

Upload: hamish

Post on 07-Jan-2016

39 views

Category:

Documents


0 download

DESCRIPTION

MIS 3150 Data and Info Management Lecture 1 - Database fundamentals. Arijit Sengupta. Structure of this quarter. MIS3150. 1. Design. 2. Querying. 4. Advanced Topics. 0. Intro. 3. Applications. Database Fundamentals. Conceptual Modeling. Query Languages. Java DB Applications – - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

MIS 3150 Data and Info Management

Lecture 1 - Database fundamentals

Arijit Sengupta

Page 2: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Structure of this quarter

Database Fundamentals

Relational Model

Normalization

ConceptualModeling Query

Languages

AdvancedSQL

Transaction Management

Java DB Applications –JDBC

DataMining

0. Intro 1. Design 3. Applications 4. AdvancedTopics

Newbie Users ProfessionalsDesigners

MIS3150

2. Querying

Developers

Page 3: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Today’s buzzwords

• Organizational data cycle• Database• Database Management Systems• Data Independence• Centralized Database Systems• Client-Server Database Systems• Distributed Database Systems

Page 4: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Getting used to Pilot

• Content – lecture notes, etc.

• Discussion boards

• Dropboxes – for assignments

• Groups – form the project groups

• Quizzes and exams

• Grades

• Finally… Elluminate!

Page 5: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Before we begin – Elluminate!

• In the Elluminate tab, find the Elluminate link for today’s lecture

• When you click the link, a small jws application will download and start (might take a few minutes)

• Remember – do not click the microphone button if you are using the lab computers.

Page 6: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Elluminate practices

• Asking e-questions

• Providing e-feedback

• Using chat

• Using polls and poll results

• Using the whiteboard

Page 7: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Poll Question 1

How would you evaluate your current knowledge of databases?

A.Very little or no knowledge

B.Some knowledge (e.g., Access)

C.Good knowledge (used an enterprise DBMS before)

D.Expert (work/worked in database industry)

Page 8: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Poll Question 2

How would you evaluate your knowledge of SQL?

A.Little of no knowledge

B.Have written some very basic SQL with only Select-from-where

C.Have written mid-level SQL with joins and aggregate functions

D.Expert – have used nested subqueries and other advanced features

Page 9: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Using the whiteboard

Write one thing that you hope you will learn in this course.

Page 10: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Objectives of today’s lecture

• Know common database terminology• Understand requirements and uses of data• Know the differences between databases

and flat files• Realize the importance and need for

databases in problem-solving• Understand the different types of

databases and their differences

Page 11: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Data: A Resource

• The Success of an organization depends on efficient use of its resources:Buildings, factories, equipmentTechnical know-howHuman resourcesData

• Data: An important organizational resource

Page 12: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Electronic Data

• Why?Large volume in a small spaceEase of sharingEase of useData analysis

• How?File-based system versus databases

Page 13: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Legacy (File-based) Systems

• Uncontrolled data redundancy, • Data inconsistency• Poor data sharing• Difficult to keep up with changes• Record format Vs. user requirements• Programs Vs. record format• Low productivity• High maintenance cost

Page 14: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

So what is a database?

• According to Oxford English Dictionary:“A structured collection of data held in

computer storage; esp. one that incorporates software to make it accessible in a variety of ways”

• So does it make pretty much every collection of data a “database”?

Page 15: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

The Database

• The data itself PLUS The data definitions (metadata), applications, queries and visualizations

Page 16: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Database Approach

• Non-redundant collection of logically related facts representing some aspect of the real world the data itself plus the data definitions

• Permits sharing• Consistent representation for each piece of data• Avoids (minimizes) redundancy• Allows different user views• Users are isolated from most changes

Page 17: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Why Databases?

• Independence from representation formats

• Control redundancy and consistency• Ensure integrity/security• Better scalability• Allow ad hoc access• Better maintenance• Better concurrency

Page 18: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Data Independence

• Does data have to be part of programs?

• Do we need to change one if the other changes?

• Three-tier architecture of databasesWhat the users see

How we model data

How data is stored

View

Conceptual

Physical

Page 19: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Access Flexibility

• Easy to ask ad-hoc questions

• No need for separate codes

• User-friendly interface

• Command-based (e.g., SQL)

• Graphical (e.g., QBE)

Page 20: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Data Integrity

• Ensures that the stored data are consistent and correct

• Easy to define global rulescustomer_age > 21 yearsnumber_of_credits < 18

• Can allow multiple users to access data without compromising on data integrity

Page 21: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Data Security

• Access definitionGlobalLocal

• Uniform access authorization

Page 22: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Data Redundancy

• Data need not be replicated

• Less wastage of storage space

• Less data anomaly

• Reduced and controlled redundancy

• Tighter control of replicated data

Page 23: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Standardization

• Everybody talks the same talk.Less chance of misunderstandingEasier to interpret other’s data

• Easier to mergeUseful when several organizations

combine to form one.

Page 24: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Productivity and Maintenance

• Increase in productivity User-friendly interface Independence from specific data structure

• Easier maintenance Less code to maintain

• The DBMS is the bulk of the code.• Ad-hoc queries make it possible to make do with

much less code. The vendor makes revisions of the DBMS.

• Economy of scale

Page 25: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Productivity vs. Maintenance

0102030405060708090

100

Start 1st week 2nd week 3rd week 4th week

Prod-DB

Prod-FL

Mnt-DB

Mnt-FL

Page 26: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Disadvantages of Databases

• Software complexity

• Processing inefficiency

• Need for co-ordination

• Organizational impact

• Risk

Page 27: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

DBMS

• A Specialized piece of software that sits between the data and its users.

DatabaseManagement

System

DataIntension + Extension

Page 28: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

DBMS Functions and Users

• Four major uses of a DBMS package Database Development, Interrogation, Maintenance,

and

Application Development

• Automated tools for design, query, and application development

• Database users Database administrators ( DBAs )

Database designer

End Users

Page 29: MIS 3150 Data and Info Management  Lecture 1 - Database fundamentals

ISOM

Summary

• Data is essential for an organization

• A Database is usually the most effective way of storing and organizing data

• File-based Vs. database systems

• Database system properties

• Types of database systems