SlideShare uma empresa Scribd logo
1 de 39
CS3270
DATABASE – I
Mr. Dilawar
Lecturer,
Computer Science Faculty,
Bakhtar University
Kabul, Afghanistan.
Course Objectives
After successfully completing this course, you will be able to:
• Understand the underlying concepts of database, and database management
system (DBMS).
• Learn the concept of relational data model.
• Analysis and design of database application or information system.
• Experience with SQL.
• Implement the database using SQL.
• Learn to work with Microsoft SQL Server environment.
Course Outline
• Introduction to Databases
• Database Environment
• Database Architecture and the Web
• The Relational Model
• Relational Algebra and Relational Calculus
• SQL: Data Manipulation
• SQL: Data Definition
Course Outline
• Database Planning, Design, and Administration
• Fact-Finding Techniques
• Entity-Relationship Modeling
• Enhanced Entity-Relationship Modeling
• Normalization
• Advanced Normalization
• Design Methodologies
Text Books to Follow
• Database Systems: A Practical Approach to Design, Implementation, and
Management, Connolly, T. M., and Begg, C. E. 6th Edition, Addison Wesley, 2015.
• Modern Database Management, Hoffer, Jeffrey A., and Prescott, Mary B., and
McFadden, Fred R. 10th Edition, Prentice Hall, 2011.
• Database Processing Fundamentals, Design and Implementation, Kroenke, David
M. 12th Edition, Prentice Hall.
• An Introduction to Database Systems, Date, C. J. 8th Edition, Addison Wesley,
2003.
Introduction to Databases
Chapter – 1
Lecture Outline
• Introduction
• Traditional File-Based Systems
• Database Approach
• Roles in the Database Environment
• History of DBMS
• Advantages and Disadvantages of DBMSs
Introduction
• Collection of logically related data is called database.
• A database may be of any size and complexity.
• Salesperson may contain a small database of customer contacts.
• A large corporation may build a large database.
Introduction
• Other examples of database applications can be:
• Purchases from the supermarket.
• Purchasing using your credit card.
• Booking a holiday at the travel agent.
• Using the local library.
• Using the internet.
• Studying at university.
Introduction
• A software or tool that is used to manage and control the access to
the database is called database management systems.
• A database application is simply a program that interacts with the
database at some point in its execution.
• A database system is a collection of application programs that interact
with the database along with the DBMS and database itself.
Traditional File Processing System
• File-based system is a collection of application programs that perform
services for the end-users such as the production of reports.
• Each program defines and manages its own data.
• Early attempt to computerize the manual filing system.
• Files in cabinet and locks for security.
• For searching we may have indexing system that helps locate what we want quickly.
• Works well
• While number of items to be stored is small.
• For only storage or retrieval functionality of large number of items.
Traditional File Processing System
• The manual system becomes more inefficient while processing the
information in the files.
• Typical real estate agent’s office holds two separate files:
• File for each property for sale or rent.
• File for each buyer and renter, and each member of staff.
Traditional File Processing System
Sales Department
Contract Department
Traditional File Processing System
• Consider the efforts that would be required to answer the following
questions:
File-Based Approach
• The file-based system was developed in response to the needs of
industry for more efficient data access.
• Based on decentralized approach, where each department, with the
assistance of Data Processing (DP) staff, stored and controlled its own data.
• Consider the DreamHome example.
File-Based Approach
File-Based Approach
• Significant amount of duplication of data.
• Before to discuss the limitations, it is useful to understand the
terminology used in file-based systems.
• A file is simply a collection of records, which contains logically related data.
• For example, the PropertyForRent file contains six records, one for each property.
• Each record contains a logically connected set of one or more fields.
• Each field represents some characteristics of the real-world object that is being modeled.
Limitations of File-Based Approach
• Separation and isolation of data
• Each program maintains its own set of data.
• Users of one program may be unaware of potentially useful data held by
other programs.
• Duplication of data
• Decentralized approach taken by each department.
• Same data is held by different programs.
• Wasted space, money and time and perhaps more importantly data integrity;
in other words data consistency.
Limitations of File-Based Approach
• Data Dependence
• File structure is defined in the program code.
• Also known as a Program-Data dependence.
• Incompatible file formats
• Programs are written in different languages, and so cannot easily access each
other’s files.
• Fixed Queries/Proliferation of application programs
• Programs are written to satisfy particular functions.
• Any new requirement needs a new program.
Database Approach
• All the above limitations of file-based approach can be listed as:
• The definition of the data is embedded in the application programs, rather
than being stored separately and independently.
• There is no control over the access and manipulation of data outside that
forced by the application programs.
• The above limitations were overcome with the new approach called
database approach (database and DBMS).
The Database
• A shared collection of logically related data, and a description of this
data, designed to meet the information needs of an organization –
Database.
• Integrated with a minimum amount of duplication.
• Shared corporate resource.
• Also holds the description of the data.
• Description of data is known as the system catalog (or data dictionary
or metadata – the ‘data about data’).
• Data abstraction.
Database Management System
• A software system that enables users to define, create, maintain, and
control access to the database.
• The DBMS is the software that interacts with the users’ application
programs and the database.
Database Management System
• Typically, a DBMS provides the following facilities:
• It allows users to define the database, usually through a Data Definition
Language.
• The DDL allows users to specify the data types and structures and the constraints on the
data to be stored in the database.
• It allows users to insert, update, delete, and retrieve data from the database,
usually through Data Manipulation Language (DML).
• It provides controlled access to the database.
• Data security, data integrity, concurrency control system, recovery control system, and a
user-accessible catalog.
(Database) Application Programs
• A computer program that interacts with the database by issuing an
appropriate request (typically an SQL statement) to the DBMS.
• The programs might be a desktop application or an online application.
• The application program may be written in some programming
languages or in some 4GL.
(Database) Application Programs
(Database) Application Programs
• Allows each user to have his or her own view of the database – View.
• A view is essentially some subset of the database.
• The benefits of views are:
• Reduce complexity.
• Provide a level of security.
• Provide a mechanism to customize the appearance of the database.
• Present a consistent, unchanging picture of the structure of the database,
even if the underlying database is changed.
Components of the DBMS Environment
Roles in the Database Environment
• Data Administrator (DA)
• The DA is responsible for the management of the data resource including
database planning, development and maintenance of standards, policies and
procedures.
• Database Administrator (DBA)
• Physical realization of the database.
• Physical database design and implementation.
• Security and integrity control.
• Maintenance of the operational system.
• Ensuring satisfactory performance of the applications for users.
Roles in the Database Environment
• Database Designers (Logical and Physical)
• The logical database designer must have a thorough and complete
understanding of the organization’s data and any constraints on this data.
• Identifying the data (entities, attributes, relationships, and constraints).
• Constraints are some called business rules.
Roles in the Database Environment
• Database Designers (Logical and Physical)
• The physical database designer decides how the logical database design is to
be physically realized.
• Mapping the logical database design into a set of tables and integrity constraints.
• Selecting specific storage structures and access methods for the data to achieve good
performance.
• Designing any security measures required on the data.
Roles in the Database Environment
• Application Programmers
• Once the database is implemented, the application programs that provide the
required functionality for the end-users must be implemented.
• End Users (naive and sophisticated)
History of Database Management Systems
• Roots of the DBMS
• Apollo moon-landing project, 1960s.
• NAA (North American Aviation), prime contractor for the project.
• Developed a software GUAM (Generalized Update Access Method),
hierarchical.
• In mid – 1960s IBM joined NAA, result was IMS (Information Management
System).
History of Database Management Systems
• IDS ( Integrated Data Store)
• By General Electric, network, mid-1960.
• CODASYL (Conference on Data Systems Languages)
• DBTG (Data Base Task Group)
• Proposal in 1971.
• Network schema, subschema, and data management language.
• DDL, subschema DDL, and DML.
History of Database Management Systems
• E. F. Codd, 1970
• IBM Research Laboratory
• Relational model
• Result of this project
• Development of SQL
• Commercial relational DBMS products e.g. DB2, SQL/DS from IBM, Oracle from Oracle
Corp.
Advantages of DBMSs
• Control of data redundancy
• Data consistency
• More information from the same amount of data
• Sharing of data
• Improved data integrity (constraints)
• Improved security (authentication, rights)
• Enforcement of standards (data formats, naming conventions,
documentation etc.)
Advantages of DBMSs
• Economy of scale (economical cost)
• Balance conflicting requirements
• Improved data accessibility and responsiveness (ad hoc queries)
• Increased productivity (developer)
• Improved maintenance through data independence
• Increased concurrency
• Improved backup and recovery services
Disadvantages of DBMSs
• Complexity
• Size (disk space for DBMS)
• Cost of DBMS
• Additional hardware costs
• Cost of conversion
• Performance
• Higher impact of a failure
Summery
• Introduction
• Traditional File-Based Systems
• Database Approach
• Roles in the Database Environment
• History of DBMS
• Advantages and Disadvantages of DBMSs
Thank You
For your Patience

Mais conteúdo relacionado

Mais procurados

Historical Evolution of RDBMS
Historical Evolution of RDBMSHistorical Evolution of RDBMS
Historical Evolution of RDBMSShailesh Pachori
 
Pmit 6102-14-lec1-intro
Pmit 6102-14-lec1-introPmit 6102-14-lec1-intro
Pmit 6102-14-lec1-introJesmin Rahaman
 
Presentation on Database management system
Presentation on Database management systemPresentation on Database management system
Presentation on Database management systemPrerana Bhattarai
 
Introduction & history of dbms
Introduction & history of dbmsIntroduction & history of dbms
Introduction & history of dbmssethu pm
 
Lesson - 02 Network Design and Management
Lesson - 02 Network Design and ManagementLesson - 02 Network Design and Management
Lesson - 02 Network Design and ManagementAngel G Diaz
 
Chapter 01 Fundamental of Database Management System (DBMS)
Chapter 01  Fundamental of Database Management System (DBMS)Chapter 01  Fundamental of Database Management System (DBMS)
Chapter 01 Fundamental of Database Management System (DBMS)Abdurehman Mahmud
 
Database Management System
Database Management SystemDatabase Management System
Database Management SystemM Harris Hashmi
 
Bsc cs ii-dbms- u-i-database systems
Bsc cs ii-dbms- u-i-database systemsBsc cs ii-dbms- u-i-database systems
Bsc cs ii-dbms- u-i-database systemsRai University
 
Database administrator
Database administratorDatabase administrator
Database administratorTech_MX
 
Database Management Systems - Management Information System
Database Management Systems - Management Information SystemDatabase Management Systems - Management Information System
Database Management Systems - Management Information SystemNijaz N
 
Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02Jotham Gadot
 
Data and database administration(database)
Data and database administration(database)Data and database administration(database)
Data and database administration(database)welcometofacebook
 
Beginning Of DBMS (data base)
Beginning Of DBMS (data base)Beginning Of DBMS (data base)
Beginning Of DBMS (data base)Surya Swaroop
 

Mais procurados (20)

Historical Evolution of RDBMS
Historical Evolution of RDBMSHistorical Evolution of RDBMS
Historical Evolution of RDBMS
 
DBMS an Example
DBMS an ExampleDBMS an Example
DBMS an Example
 
Pmit 6102-14-lec1-intro
Pmit 6102-14-lec1-introPmit 6102-14-lec1-intro
Pmit 6102-14-lec1-intro
 
Presentation on Database management system
Presentation on Database management systemPresentation on Database management system
Presentation on Database management system
 
Introduction & history of dbms
Introduction & history of dbmsIntroduction & history of dbms
Introduction & history of dbms
 
Database
DatabaseDatabase
Database
 
Lesson - 02 Network Design and Management
Lesson - 02 Network Design and ManagementLesson - 02 Network Design and Management
Lesson - 02 Network Design and Management
 
Chapter 01 Fundamental of Database Management System (DBMS)
Chapter 01  Fundamental of Database Management System (DBMS)Chapter 01  Fundamental of Database Management System (DBMS)
Chapter 01 Fundamental of Database Management System (DBMS)
 
Dbms unit 1
Dbms unit 1Dbms unit 1
Dbms unit 1
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Bsc cs ii-dbms- u-i-database systems
Bsc cs ii-dbms- u-i-database systemsBsc cs ii-dbms- u-i-database systems
Bsc cs ii-dbms- u-i-database systems
 
23246406 dbms-unit-1
23246406 dbms-unit-123246406 dbms-unit-1
23246406 dbms-unit-1
 
DBMS CONCEPT
DBMS CONCEPTDBMS CONCEPT
DBMS CONCEPT
 
Database administrator
Database administratorDatabase administrator
Database administrator
 
02010 ppt ch01
02010 ppt ch0102010 ppt ch01
02010 ppt ch01
 
Database Management Systems - Management Information System
Database Management Systems - Management Information SystemDatabase Management Systems - Management Information System
Database Management Systems - Management Information System
 
Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02
 
Normalization
NormalizationNormalization
Normalization
 
Data and database administration(database)
Data and database administration(database)Data and database administration(database)
Data and database administration(database)
 
Beginning Of DBMS (data base)
Beginning Of DBMS (data base)Beginning Of DBMS (data base)
Beginning Of DBMS (data base)
 

Destaque

Nt 01-2008 victoria naveda
Nt 01-2008 victoria navedaNt 01-2008 victoria naveda
Nt 01-2008 victoria navedaVictoria Naveda
 
บทที่ 1 การจัดตั้งห้างหุ้นส่วน
บทที่ 1 การจัดตั้งห้างหุ้นส่วนบทที่ 1 การจัดตั้งห้างหุ้นส่วน
บทที่ 1 การจัดตั้งห้างหุ้นส่วนPa'rig Prig
 
lesson 5: Cone of experience
lesson 5: Cone of experiencelesson 5: Cone of experience
lesson 5: Cone of experienceFaith Bayaten
 
じょいとも広告人講座16:マーティン・ソレル
じょいとも広告人講座16:マーティン・ソレルじょいとも広告人講座16:マーティン・ソレル
じょいとも広告人講座16:マーティン・ソレルじょいとも
 
El tutor de elearning
El tutor de elearningEl tutor de elearning
El tutor de elearningagustinabert
 
Pengurusan bahan buangan
Pengurusan bahan buanganPengurusan bahan buangan
Pengurusan bahan buangannana ahmad
 
CS3270 - DATABASE SYSTEM - Lecture (2)
CS3270 - DATABASE SYSTEM - Lecture (2)CS3270 - DATABASE SYSTEM - Lecture (2)
CS3270 - DATABASE SYSTEM - Lecture (2)Dilawar Khan
 
CS4443 - Modern Programming Language I
CS4443 - Modern Programming Language ICS4443 - Modern Programming Language I
CS4443 - Modern Programming Language IDilawar Khan
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational modelChirag vasava
 
CS7330 - Electronic Commerce - lecture (1)
CS7330 - Electronic Commerce - lecture (1)CS7330 - Electronic Commerce - lecture (1)
CS7330 - Electronic Commerce - lecture (1)Dilawar Khan
 
CS4443 - Modern Programming Language - I Lecture (2)
CS4443 - Modern Programming Language - I  Lecture (2)CS4443 - Modern Programming Language - I  Lecture (2)
CS4443 - Modern Programming Language - I Lecture (2)Dilawar Khan
 
CS4443 - Modern Programming Language - I Lecture (1)
CS4443 - Modern Programming Language - I Lecture (1)CS4443 - Modern Programming Language - I Lecture (1)
CS4443 - Modern Programming Language - I Lecture (1)Dilawar Khan
 
CS3270 – Database Systems Course Outline
CS3270 – Database Systems Course OutlineCS3270 – Database Systems Course Outline
CS3270 – Database Systems Course OutlineDilawar Khan
 
Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management SystemHardik Patil
 

Destaque (20)

Nt 01-2008 victoria naveda
Nt 01-2008 victoria navedaNt 01-2008 victoria naveda
Nt 01-2008 victoria naveda
 
บทที่ 1 การจัดตั้งห้างหุ้นส่วน
บทที่ 1 การจัดตั้งห้างหุ้นส่วนบทที่ 1 การจัดตั้งห้างหุ้นส่วน
บทที่ 1 การจัดตั้งห้างหุ้นส่วน
 
lesson 5: Cone of experience
lesson 5: Cone of experiencelesson 5: Cone of experience
lesson 5: Cone of experience
 
じょいとも広告人講座16:マーティン・ソレル
じょいとも広告人講座16:マーティン・ソレルじょいとも広告人講座16:マーティン・ソレル
じょいとも広告人講座16:マーティン・ソレル
 
Ocet Act1 Uni2
Ocet Act1 Uni2Ocet Act1 Uni2
Ocet Act1 Uni2
 
El tutor de elearning
El tutor de elearningEl tutor de elearning
El tutor de elearning
 
Prueba saber decimo
Prueba saber decimoPrueba saber decimo
Prueba saber decimo
 
Pengurusan bahan buangan
Pengurusan bahan buanganPengurusan bahan buangan
Pengurusan bahan buangan
 
CS3270 - DATABASE SYSTEM - Lecture (2)
CS3270 - DATABASE SYSTEM - Lecture (2)CS3270 - DATABASE SYSTEM - Lecture (2)
CS3270 - DATABASE SYSTEM - Lecture (2)
 
CS4443 - Modern Programming Language I
CS4443 - Modern Programming Language ICS4443 - Modern Programming Language I
CS4443 - Modern Programming Language I
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
 
CS7330 - Electronic Commerce - lecture (1)
CS7330 - Electronic Commerce - lecture (1)CS7330 - Electronic Commerce - lecture (1)
CS7330 - Electronic Commerce - lecture (1)
 
CS4443 - Modern Programming Language - I Lecture (2)
CS4443 - Modern Programming Language - I  Lecture (2)CS4443 - Modern Programming Language - I  Lecture (2)
CS4443 - Modern Programming Language - I Lecture (2)
 
CS4443 - Modern Programming Language - I Lecture (1)
CS4443 - Modern Programming Language - I Lecture (1)CS4443 - Modern Programming Language - I Lecture (1)
CS4443 - Modern Programming Language - I Lecture (1)
 
Database management system basic, database, database management, learn databa...
Database management system basic, database, database management, learn databa...Database management system basic, database, database management, learn databa...
Database management system basic, database, database management, learn databa...
 
CS3270 – Database Systems Course Outline
CS3270 – Database Systems Course OutlineCS3270 – Database Systems Course Outline
CS3270 – Database Systems Course Outline
 
Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management System
 
Yraida becerra
Yraida becerraYraida becerra
Yraida becerra
 
Tp 3 01-07-16
Tp 3 01-07-16Tp 3 01-07-16
Tp 3 01-07-16
 
MODELO DE Projeto literatura na escola
MODELO DE Projeto  literatura na escolaMODELO DE Projeto  literatura na escola
MODELO DE Projeto literatura na escola
 

Semelhante a CS3270 - DATABASE SYSTEM - Lecture (1)

Semelhante a CS3270 - DATABASE SYSTEM - Lecture (1) (20)

Chapter 1
Chapter 1Chapter 1
Chapter 1
 
01-Database Administration and Management.pdf
01-Database Administration and Management.pdf01-Database Administration and Management.pdf
01-Database Administration and Management.pdf
 
PHP/MySQL First Session Material
PHP/MySQL First Session MaterialPHP/MySQL First Session Material
PHP/MySQL First Session Material
 
Database management system lecture notes
Database management system lecture notesDatabase management system lecture notes
Database management system lecture notes
 
Database system
Database systemDatabase system
Database system
 
9a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc29a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc2
 
Module 1 - Chapter1.pptx
Module 1 - Chapter1.pptxModule 1 - Chapter1.pptx
Module 1 - Chapter1.pptx
 
Database management system (part 1)
Database management system (part 1)Database management system (part 1)
Database management system (part 1)
 
Database & Database Users
Database & Database UsersDatabase & Database Users
Database & Database Users
 
Lecture-1.ppt
Lecture-1.pptLecture-1.ppt
Lecture-1.ppt
 
Intoduction- Database Management System
Intoduction- Database Management SystemIntoduction- Database Management System
Intoduction- Database Management System
 
dbms introduction.pptx
dbms introduction.pptxdbms introduction.pptx
dbms introduction.pptx
 
DBMS introduction
DBMS introductionDBMS introduction
DBMS introduction
 
CST204 DBMS Module-1
CST204 DBMS Module-1CST204 DBMS Module-1
CST204 DBMS Module-1
 
01-database-management.pptx
01-database-management.pptx01-database-management.pptx
01-database-management.pptx
 
Utsav Mahendra : Introduction to Database and managemnet
Utsav Mahendra : Introduction to Database and managemnetUtsav Mahendra : Introduction to Database and managemnet
Utsav Mahendra : Introduction to Database and managemnet
 
Lecture 1 =Unit 1 Part 1.ppt
Lecture 1 =Unit 1 Part 1.pptLecture 1 =Unit 1 Part 1.ppt
Lecture 1 =Unit 1 Part 1.ppt
 
CST204 DBMSMODULE1 PPT (1).pptx
CST204 DBMSMODULE1 PPT (1).pptxCST204 DBMSMODULE1 PPT (1).pptx
CST204 DBMSMODULE1 PPT (1).pptx
 
Introduction to RDBMS
Introduction to RDBMSIntroduction to RDBMS
Introduction to RDBMS
 
Database Systems Lec 1.pptx
Database Systems Lec 1.pptxDatabase Systems Lec 1.pptx
Database Systems Lec 1.pptx
 

Mais de Dilawar Khan

EE5440 – Computer Architecture - Lecture 3
EE5440 – Computer Architecture - Lecture 3EE5440 – Computer Architecture - Lecture 3
EE5440 – Computer Architecture - Lecture 3Dilawar Khan
 
EE5440 – Computer Architecture - Lecture 2
EE5440 – Computer Architecture - Lecture 2EE5440 – Computer Architecture - Lecture 2
EE5440 – Computer Architecture - Lecture 2Dilawar Khan
 
EE5440 – Computer Architecture - Lecture 1
EE5440 – Computer Architecture - Lecture 1EE5440 – Computer Architecture - Lecture 1
EE5440 – Computer Architecture - Lecture 1Dilawar Khan
 
CS7330 - Electronic Commerce - lecture (3)
CS7330 - Electronic Commerce - lecture (3)CS7330 - Electronic Commerce - lecture (3)
CS7330 - Electronic Commerce - lecture (3)Dilawar Khan
 
CS7330 - Electronic Commerce - lecture (2)
CS7330 - Electronic Commerce - lecture (2)CS7330 - Electronic Commerce - lecture (2)
CS7330 - Electronic Commerce - lecture (2)Dilawar Khan
 
EE5440 – Computer Architecture Course Outline
EE5440 – Computer Architecture Course OutlineEE5440 – Computer Architecture Course Outline
EE5440 – Computer Architecture Course OutlineDilawar Khan
 
CS7330 Electronic Commerce Course Outline
CS7330 Electronic Commerce Course OutlineCS7330 Electronic Commerce Course Outline
CS7330 Electronic Commerce Course OutlineDilawar Khan
 

Mais de Dilawar Khan (7)

EE5440 – Computer Architecture - Lecture 3
EE5440 – Computer Architecture - Lecture 3EE5440 – Computer Architecture - Lecture 3
EE5440 – Computer Architecture - Lecture 3
 
EE5440 – Computer Architecture - Lecture 2
EE5440 – Computer Architecture - Lecture 2EE5440 – Computer Architecture - Lecture 2
EE5440 – Computer Architecture - Lecture 2
 
EE5440 – Computer Architecture - Lecture 1
EE5440 – Computer Architecture - Lecture 1EE5440 – Computer Architecture - Lecture 1
EE5440 – Computer Architecture - Lecture 1
 
CS7330 - Electronic Commerce - lecture (3)
CS7330 - Electronic Commerce - lecture (3)CS7330 - Electronic Commerce - lecture (3)
CS7330 - Electronic Commerce - lecture (3)
 
CS7330 - Electronic Commerce - lecture (2)
CS7330 - Electronic Commerce - lecture (2)CS7330 - Electronic Commerce - lecture (2)
CS7330 - Electronic Commerce - lecture (2)
 
EE5440 – Computer Architecture Course Outline
EE5440 – Computer Architecture Course OutlineEE5440 – Computer Architecture Course Outline
EE5440 – Computer Architecture Course Outline
 
CS7330 Electronic Commerce Course Outline
CS7330 Electronic Commerce Course OutlineCS7330 Electronic Commerce Course Outline
CS7330 Electronic Commerce Course Outline
 

Último

4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxleah joy valeriano
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 

Último (20)

4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 

CS3270 - DATABASE SYSTEM - Lecture (1)

  • 1. CS3270 DATABASE – I Mr. Dilawar Lecturer, Computer Science Faculty, Bakhtar University Kabul, Afghanistan.
  • 2. Course Objectives After successfully completing this course, you will be able to: • Understand the underlying concepts of database, and database management system (DBMS). • Learn the concept of relational data model. • Analysis and design of database application or information system. • Experience with SQL. • Implement the database using SQL. • Learn to work with Microsoft SQL Server environment.
  • 3. Course Outline • Introduction to Databases • Database Environment • Database Architecture and the Web • The Relational Model • Relational Algebra and Relational Calculus • SQL: Data Manipulation • SQL: Data Definition
  • 4. Course Outline • Database Planning, Design, and Administration • Fact-Finding Techniques • Entity-Relationship Modeling • Enhanced Entity-Relationship Modeling • Normalization • Advanced Normalization • Design Methodologies
  • 5. Text Books to Follow • Database Systems: A Practical Approach to Design, Implementation, and Management, Connolly, T. M., and Begg, C. E. 6th Edition, Addison Wesley, 2015. • Modern Database Management, Hoffer, Jeffrey A., and Prescott, Mary B., and McFadden, Fred R. 10th Edition, Prentice Hall, 2011. • Database Processing Fundamentals, Design and Implementation, Kroenke, David M. 12th Edition, Prentice Hall. • An Introduction to Database Systems, Date, C. J. 8th Edition, Addison Wesley, 2003.
  • 7. Lecture Outline • Introduction • Traditional File-Based Systems • Database Approach • Roles in the Database Environment • History of DBMS • Advantages and Disadvantages of DBMSs
  • 8. Introduction • Collection of logically related data is called database. • A database may be of any size and complexity. • Salesperson may contain a small database of customer contacts. • A large corporation may build a large database.
  • 9. Introduction • Other examples of database applications can be: • Purchases from the supermarket. • Purchasing using your credit card. • Booking a holiday at the travel agent. • Using the local library. • Using the internet. • Studying at university.
  • 10. Introduction • A software or tool that is used to manage and control the access to the database is called database management systems. • A database application is simply a program that interacts with the database at some point in its execution. • A database system is a collection of application programs that interact with the database along with the DBMS and database itself.
  • 11. Traditional File Processing System • File-based system is a collection of application programs that perform services for the end-users such as the production of reports. • Each program defines and manages its own data. • Early attempt to computerize the manual filing system. • Files in cabinet and locks for security. • For searching we may have indexing system that helps locate what we want quickly. • Works well • While number of items to be stored is small. • For only storage or retrieval functionality of large number of items.
  • 12. Traditional File Processing System • The manual system becomes more inefficient while processing the information in the files. • Typical real estate agent’s office holds two separate files: • File for each property for sale or rent. • File for each buyer and renter, and each member of staff.
  • 13. Traditional File Processing System Sales Department Contract Department
  • 14. Traditional File Processing System • Consider the efforts that would be required to answer the following questions:
  • 15. File-Based Approach • The file-based system was developed in response to the needs of industry for more efficient data access. • Based on decentralized approach, where each department, with the assistance of Data Processing (DP) staff, stored and controlled its own data. • Consider the DreamHome example.
  • 17. File-Based Approach • Significant amount of duplication of data. • Before to discuss the limitations, it is useful to understand the terminology used in file-based systems. • A file is simply a collection of records, which contains logically related data. • For example, the PropertyForRent file contains six records, one for each property. • Each record contains a logically connected set of one or more fields. • Each field represents some characteristics of the real-world object that is being modeled.
  • 18. Limitations of File-Based Approach • Separation and isolation of data • Each program maintains its own set of data. • Users of one program may be unaware of potentially useful data held by other programs. • Duplication of data • Decentralized approach taken by each department. • Same data is held by different programs. • Wasted space, money and time and perhaps more importantly data integrity; in other words data consistency.
  • 19. Limitations of File-Based Approach • Data Dependence • File structure is defined in the program code. • Also known as a Program-Data dependence. • Incompatible file formats • Programs are written in different languages, and so cannot easily access each other’s files. • Fixed Queries/Proliferation of application programs • Programs are written to satisfy particular functions. • Any new requirement needs a new program.
  • 20. Database Approach • All the above limitations of file-based approach can be listed as: • The definition of the data is embedded in the application programs, rather than being stored separately and independently. • There is no control over the access and manipulation of data outside that forced by the application programs. • The above limitations were overcome with the new approach called database approach (database and DBMS).
  • 21. The Database • A shared collection of logically related data, and a description of this data, designed to meet the information needs of an organization – Database. • Integrated with a minimum amount of duplication. • Shared corporate resource. • Also holds the description of the data. • Description of data is known as the system catalog (or data dictionary or metadata – the ‘data about data’). • Data abstraction.
  • 22. Database Management System • A software system that enables users to define, create, maintain, and control access to the database. • The DBMS is the software that interacts with the users’ application programs and the database.
  • 23. Database Management System • Typically, a DBMS provides the following facilities: • It allows users to define the database, usually through a Data Definition Language. • The DDL allows users to specify the data types and structures and the constraints on the data to be stored in the database. • It allows users to insert, update, delete, and retrieve data from the database, usually through Data Manipulation Language (DML). • It provides controlled access to the database. • Data security, data integrity, concurrency control system, recovery control system, and a user-accessible catalog.
  • 24. (Database) Application Programs • A computer program that interacts with the database by issuing an appropriate request (typically an SQL statement) to the DBMS. • The programs might be a desktop application or an online application. • The application program may be written in some programming languages or in some 4GL.
  • 26. (Database) Application Programs • Allows each user to have his or her own view of the database – View. • A view is essentially some subset of the database. • The benefits of views are: • Reduce complexity. • Provide a level of security. • Provide a mechanism to customize the appearance of the database. • Present a consistent, unchanging picture of the structure of the database, even if the underlying database is changed.
  • 27. Components of the DBMS Environment
  • 28. Roles in the Database Environment • Data Administrator (DA) • The DA is responsible for the management of the data resource including database planning, development and maintenance of standards, policies and procedures. • Database Administrator (DBA) • Physical realization of the database. • Physical database design and implementation. • Security and integrity control. • Maintenance of the operational system. • Ensuring satisfactory performance of the applications for users.
  • 29. Roles in the Database Environment • Database Designers (Logical and Physical) • The logical database designer must have a thorough and complete understanding of the organization’s data and any constraints on this data. • Identifying the data (entities, attributes, relationships, and constraints). • Constraints are some called business rules.
  • 30. Roles in the Database Environment • Database Designers (Logical and Physical) • The physical database designer decides how the logical database design is to be physically realized. • Mapping the logical database design into a set of tables and integrity constraints. • Selecting specific storage structures and access methods for the data to achieve good performance. • Designing any security measures required on the data.
  • 31. Roles in the Database Environment • Application Programmers • Once the database is implemented, the application programs that provide the required functionality for the end-users must be implemented. • End Users (naive and sophisticated)
  • 32. History of Database Management Systems • Roots of the DBMS • Apollo moon-landing project, 1960s. • NAA (North American Aviation), prime contractor for the project. • Developed a software GUAM (Generalized Update Access Method), hierarchical. • In mid – 1960s IBM joined NAA, result was IMS (Information Management System).
  • 33. History of Database Management Systems • IDS ( Integrated Data Store) • By General Electric, network, mid-1960. • CODASYL (Conference on Data Systems Languages) • DBTG (Data Base Task Group) • Proposal in 1971. • Network schema, subschema, and data management language. • DDL, subschema DDL, and DML.
  • 34. History of Database Management Systems • E. F. Codd, 1970 • IBM Research Laboratory • Relational model • Result of this project • Development of SQL • Commercial relational DBMS products e.g. DB2, SQL/DS from IBM, Oracle from Oracle Corp.
  • 35. Advantages of DBMSs • Control of data redundancy • Data consistency • More information from the same amount of data • Sharing of data • Improved data integrity (constraints) • Improved security (authentication, rights) • Enforcement of standards (data formats, naming conventions, documentation etc.)
  • 36. Advantages of DBMSs • Economy of scale (economical cost) • Balance conflicting requirements • Improved data accessibility and responsiveness (ad hoc queries) • Increased productivity (developer) • Improved maintenance through data independence • Increased concurrency • Improved backup and recovery services
  • 37. Disadvantages of DBMSs • Complexity • Size (disk space for DBMS) • Cost of DBMS • Additional hardware costs • Cost of conversion • Performance • Higher impact of a failure
  • 38. Summery • Introduction • Traditional File-Based Systems • Database Approach • Roles in the Database Environment • History of DBMS • Advantages and Disadvantages of DBMSs
  • 39. Thank You For your Patience

Notas do Editor

  1. Well-organized
  2. List of all houses that match the requirements of clients, first temporary file who have house as the preferred type. Consistency means realiblity.
  3. data abstraction, is that we can change the internal definition of an object without affecting the users of the object, provided the external definition remains the same. Logically related data comprises entities, attributes, and relationships of an organization’s information – Database.
  4. a concurrency control system, which allows shared access of the database.
  5. Hardware: The DBMS and the applications require hardware to run. The hardware can range from a single personal computer, to a single mainframe, to a network of computers. Software The software component comprises the DBMS software itself and the application programs, together with the operating system, including network software if the DBMS is being used over a network. Data Perhaps the most important component of the DBMS environment, certainly from the end-users’ point of view, is the data. The database contains both the operational data and the metadata, the ‘data about data’. The structure of the database is called the schema. Procedure Procedures refer to the instructions and rules that govern the design and use of the database. Log on to the DBMS. Use a particular DBMS facility or application program. Start and stop the DBMS. Make backup copies of the database. People: The final component is the people involved with the system.
  6. We split the work of the logical database designer into two stages. Conceptual database design – which is independent of implementation details such as the target DBMS. Logical database design – which targets a specific data model, such as relational. Network, hierarchical, or object-oriented.
  7. 1960s Apollo moon-landing project, which was initiated in response to President Kennedy’s objective of landing a man on the moon by the end of that decade. NAA, now Rockwell international.
  8. CODASYL– US government and the world of business and commerce.