1.1-Introduction DB v2
1.1-Introduction DB v2
Spring 2024
BSDS-1A
Credit Hours: 3+1
Lecture Outline
• Introduction
• Of the class
• Teaching team
• Overview
• Difference between File-based and Database Approach
• Data vs Information
• Information System
• Overview of DBMS
• Database Design
• Types of Databases
2
Course Learning Outcome
Course Learning Outcomes (CLOs):
PLO BT Level*
1. Understand key terms and concepts related to databases, including entities,
1 C-2
attributes, relationships, and normalization.
2. Formulate a given real-world problem by applying appropriate logical
3 C-6
design methods and tools for databases.
3. Investigate and resolve issues related to transaction management,
4 P-3
including identifying and addressing conflicts and inconsistencies in data.
4. Develop a database schema from database requirements. 5 P-3
* BT= Bloom’s Taxonomy, C=Cognitive domain, P=Psychomotor domain, A= Affective domain
Recommended Text/ Reference Books
4
Lecture Resources & Class Policy
• LMS:
• Course Outline (Will explain structure of the
course and project details soon later)
• Lecture
• Assignment
• Labs/Lab Submission
• CMS:
• Attendance (75% is the minimum requirement to appear in ESE)
• Grading
5
Tentative Grading Criteria
6
Course Contents
7
Course Contents (Cont…)
• Functional Dependencies
• Normalization (Normal Forms)
• Transactional Possessing Concepts
• Query Processing and Optimization
• Distributed Databases Management System
• Data Warehousing and Business Intelligence
• Big Data and NoSQL
8
Class Rules (1/2)
• [email protected]
• Consulting Hours:
• Tuesday (3pm-5pm) or by appointment
Lecture 1
Introduction to Databases and Database Management Systems
12
Top Database Resources
Database Conferences:
1) VLDB 2) KDD 3) ICDE 4) ICDM 5) DASFAA 6) SIGMOD
Research Labs:
1) IBM Almaden Research Lab, 2) AT&T Research Labs, 3) Microsoft
Research Lab, 4) Lucent Technologies.
Database Products:
1) Oracle, 2) IBM DB2, 3) MySQL, 4) Sybase, 5) MS SQL Server, 6) Informix.
13
Database Professionals
• Database implementers
• Build modules that go inside the DBMS
• Database application developers
• Build application that run on top of the DBMS, and are used by end-users to
interact with their data.
• Database Administrators
• Create database schema
• Maintain and tune the DBMS engine
• Maintain and tune the data in the DBMS
• Corporations need them
14
Overview
15
Files and Databases – background (1/5)
• Files: A collection of records or documents dealing with one
organization, person, area, or subject. It could either be:
• Computer files
• Manual files (Paper)
• Database: A collection of similar records with relationships
between records.
• Statistical, Business Data
• Difference ???
16
Database (2/5)
17
File Processing Systems (3/5)
18
File Processing Systems (4/5)
19
File Processing Systems (5/5)
20
Data vs. Information (1/5)
• Data: ?
• Information: ?
21
Data vs. Information (1/5)
22
Transforming raw data into information (2/5)
23
Transforming raw data into information (3/5)
24
Transforming raw data into information (4/5)
25
Transforming raw data into information (5/5)
26
What is a System (1/5)
27
Need for information (2/5)
28
What is an information system (IS) (3/5)
29
Artifacts for IS (4/5)
Designing/ Modeling
Coding/ Programming
SQL Programming
Database (Data Storage)
30
Attributes of IS (5/5)
• Easy Availability
• Timelines
• Relevant to decision at hand
• Related to current business needs
31
Database Management System (DBMS) (1/6)
Database: Collection of interrelated data
DBMS- Software to access the data
DBMS contains information about a particular enterprise
DBMS provides an environment that is both convenient and
efficient to use.
Database 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
Databases touch all aspects of our lives
32
DBMS (2/6)
33
DBMS – MS SQL Server
34
DBMS – MySQL
35
DBMS – Oracle
36
DBMS (3/6)
• DBMS serves as the intermediary between the user and the database
• The database structure itself is stored as a collection of files, and the only way
to access the data in those files is through the DBMS
37
DBMS (4/6)
• DBMS receives all application requests and translates them into the complex
operations required to fulfill those requests
• DBMS hides much of the database’s internal complexity from the application
programs and users.
38
Advantages of DBMS (5/6)
• Oracle
• IBM DB2
• Ingress
• Teradata
• MS SQL Server
• MS Access
• MySQL
40
Database Design (1/6)
41
Database Design (2/6)
42
Database Design – an example (3/6)
• Consider the data shown below which illustrates the efforts of an
organization to keep records about its employees and their skills.
43
Bad Database Design example (4/6)
• Difficult to produce an alphabetical listing of employees based on
their last names
• How to efficiently count how many possess which skill-set
• Issue due to Skill 1 and Skill 2
• Different names for same skill
• Basic Database Manipulation <> Basic DB Manipulation
44
Better Database Design (5/6)
45
Database design – another example (6/6)
46
Components of database system
47
Why Storage Manager?
• Since main memory can’t store this much data and is therefore
stored on disks.
48
Why Storage Manager?
• Since the movement of data to and from disk is slow relative to the
speed of the CPU.
49
Why Query Processor?
• Users of the system are not burdened unnecessarily with the physical
details of the implementation of the system.
50
Why Query Processor?
51
The Need
52
Types of DBs: NoSQL, Cloud
53
Architectures
SQL Databases NoSQL Databases
Key Value
Key Value
Key Value
Analytical (OLAP)
Graph
Document
54
Thank you