SlideShare ist ein Scribd-Unternehmen logo
1 von 17
LECTURE#27
YASMIN AFZAAL
 Introduction and Purpose of Databases
 Databases vs. File System
2
DATA
 What is Data?
 In simple words data can be facts related to any object
in consideration.
 For example your name, age, height, weight, etc. are
some data related to you.
 A picture , image , file , pdf etc. can also be considered
data.
3
WHAT IS A DATABASE
 Database is a systematic collection of data.
Databases support storage and manipulation of
data. Databases make data management easy.
For examples:
 An online telephone directory would definitely use
database to store data pertaining to people, phone
numbers, other contact details, etc.
 Electricity service provider is obviously using a
database to manage billing , client related issues, to
handle fault data, etc.
 Facebook also needs to store, manipulate and present
data related to members, their friends, member
activities, messages, advertisements and lot more.
4
APPLICATIONS OF DBMS
 Banking : for customer information, accounts and loans and
banking transactions.
 Universities : for student registrations and grades.
 Online shopping : Everyone wants to shop from home.
Everyday new products are added and sold only with the help
of DBMS. Purchase information, invoice bills and payment, all
of these are done with the help of DBMS.
 Airlines : for reservations and schedule information.
 Credit card transactions : for purchases on credit cards and
generation of monthly statements.
 Library Management System : maintain all the information
relate to book issue dates, name of the book, author and
availability of the book.
5
CONT.…
 Telecommunications : for keeping records of call
made, generating monthly bills, maintaining balances on
prepaid calling cards.
 Sales : for customer, product and purchase information.
 Finance : for storing information about holdings, sales,
and purchases of financial instruments such as stocks
and bonds.
 Manufacturing : for management of supply chain and
for tracking production of items in factories, inventories
of items and orders for items.
 Human Resource : for information about employees,
salaries, payroll taxes and benefits.
6
WHAT IS A DATABASE MANAGEMENT SYSTEM
(DBMS)?
 A database-management system (DBMS) is
a computer-software application that interacts
with end-users, other applications, and the
database itself to capture and analyse data.
 A general-purpose DBMS allows the definition,
creation, querying, update, and administration of
databases.
 It also helps to control access to the database.
 Database Management Systems are not a new
concept and as such had been first implemented in
1960s.
7
DATABASE LANGUAGES
 Database is built and maintained by using a database
programming language.
 Database languages are used for read, update and
store data in a database.
 There are several such languages that can be used for
this purpose;
 Microsoft Access is one of the most popular database
platforms on the market today.
 SQL (Structured Query Language) is the most
common database language and is used by most
databases today. We use SQL for a database for a
medium to large business.
 Server databases like MySQL, Microsoft SQL Server,
and Oracle are enormously powerful 8
WHAT IS THE STRUCTURE OF A DATABASE?
 A database is made up of tables that contain
columns (field) and rows (records) can be designed
to hold a specific type of data, such as a number,
text or a date.
 Data is separated by categories into tables in order
to avoid duplication.
 For example, a business might have a table for
Employees, one for Customers and another for
Products.
9
DATABASE COMPONENTS
 A database is made up of several main components.
 Schema - A database contains one or more schemas, which
is basically a collection of one or more tables of data.
 Table - Each table contains multiple columns, which are
similar to columns in a spread sheet. A table can have as little
as two columns and as many as one hundred or more
columns, depending on the type of data being stored in the
table.
 Column - Each column contains one of several types of data
or values, like dates, numeric or integer values, and
alphanumeric values (also known as varchar).
 Row - Data in a table is listed in rows, which are like rows of
data in a spread sheet. Often there are hundreds or
thousands of rows of data in a table.
10
A DATABASE….
11
WHAT CAN A DATABASE DO?
 On the surface, a database might seem much like a
spread sheet; it has data arranged in columns and rows.
But that is where the similarity ends because a database
is far more powerful.
 If the database is relational. This means that you can
create relationships between tables.
 if you linked a Customers table with an Orders table, you could
find all purchase orders from the Orders table that a single
customer from the Customers table ever processed,
 A database has broad searching functionality.
 For example, a sales department could quickly search for and find
all sales personnel who had achieved a certain amount of sales
over a particular time period.
 A database can update records in bulk – even millions
or more records.
 For example, if you wanted to add new columns or apply a data
patch of some sort. 12
CONT..
 A database can perform complex aggregate calculations
across multiple tables.
 For example, you could list expenses across multiple retail
outlets, including all possible sub-totals, and then a final total.
 A database can enforce consistency and data integrity,
which means that it can avoid duplication and ensure
data accuracy through its design and a series of
constraints.
 A database will include forms so that users can input or
edit data. In addition, it will have the facility to generate
reports from the data. A report is simply the answer to a
question, called a query in database-speak. For
instance, you might query the database to find out a
company's gross income over a particular time period.
The database will return to you the report with your
requested information. 13
DATABASES VS. FILE SYSTEM
 A Database Management System (DMS) is a
combination of computer software, hardware, and
information designed to electronically manipulate data
via computer processing.
 Two types of database management systems are
DBMS’s and FMS’s.
 A File Management System (FMS) is a Database
Management System that allows access to single files
or tables at a time. FMS’s accommodate flat files that
have no relation to other files.
 The FMS was the predecessor for the Database
Management System (DBMS), which allows access to
multiple files or tables at a time.
14
 A database management system coordinates both the
physical and the logical access to the data, whereas a file-
processing system coordinates only the physical access.
 A database management system is designed to allow
flexible access to data (i.e. queries), whereas a file-
processing system is designed to allow predetermined
access to data (i.e. compiled programs).
 A database management system is designed to coordinate
multiple users accessing the same data at the same time. A
file-processing system is usually designed to allow one or
more programs to access different data files at the same
time. In a file-processing system, a file can be accessed by
two programs concurrently only if both programs have read-
only access to the file.
15
CONT.…
 Redundancy( duplication of data) is control in
DBMS, but not in file system.
 Unauthorized access is restricted in DBMS but not
in the file system.
 DBMS provide back up and recovery whereas data
lost in file system can't be recovered.
 DBMS provide multiple user interfaces. Data is
isolated in file system.
16
 Lets explore some data base systems.
 Student database
 A shop database etc.
17

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (18)

00137
0013700137
00137
 
Database introduction
Database introductionDatabase introduction
Database introduction
 
Dbms slides
Dbms slidesDbms slides
Dbms slides
 
Intro to DBMS
Intro to DBMSIntro to DBMS
Intro to DBMS
 
D I T211 Chapter 1 1
D I T211    Chapter 1 1D I T211    Chapter 1 1
D I T211 Chapter 1 1
 
TID Chapter 10 Introduction To Database
TID Chapter 10 Introduction To DatabaseTID Chapter 10 Introduction To Database
TID Chapter 10 Introduction To Database
 
Introduction to databases
Introduction to databasesIntroduction to databases
Introduction to databases
 
ITI015En-The evolution of databases (I)
ITI015En-The evolution of databases (I)ITI015En-The evolution of databases (I)
ITI015En-The evolution of databases (I)
 
DBMS
DBMSDBMS
DBMS
 
ms-11.pdf
ms-11.pdfms-11.pdf
ms-11.pdf
 
Database Management Systems
Database Management SystemsDatabase Management Systems
Database Management Systems
 
D I T211 Chapter 1
D I T211    Chapter 1D I T211    Chapter 1
D I T211 Chapter 1
 
Bba203 unit 2data processing concepts
Bba203   unit 2data processing conceptsBba203   unit 2data processing concepts
Bba203 unit 2data processing concepts
 
Database management system
Database management systemDatabase management system
Database management system
 
Database (IT) Lecture Slide
Database (IT) Lecture SlideDatabase (IT) Lecture Slide
Database (IT) Lecture Slide
 
Library management
Library managementLibrary management
Library management
 
Disadvantages of file management system (file processing systems)
Disadvantages of file management system(file processing systems)Disadvantages of file management system(file processing systems)
Disadvantages of file management system (file processing systems)
 
Lect 30 dbms_fundamentals
Lect 30  dbms_fundamentalsLect 30  dbms_fundamentals
Lect 30 dbms_fundamentals
 

Ähnlich wie Lecture27

Ähnlich wie Lecture27 (20)

Database Management Systems (Mcom Ecommerce)
Database Management Systems (Mcom Ecommerce)Database Management Systems (Mcom Ecommerce)
Database Management Systems (Mcom Ecommerce)
 
Unit3rd
Unit3rdUnit3rd
Unit3rd
 
Database
DatabaseDatabase
Database
 
Database
DatabaseDatabase
Database
 
Database Management System Part-1.pptx
Database Management System Part-1.pptxDatabase Management System Part-1.pptx
Database Management System Part-1.pptx
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Ch-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdfCh-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdf
 
Database
DatabaseDatabase
Database
 
Chapter 05 pertemuan 7- donpas - manajemen data
Chapter 05 pertemuan 7- donpas - manajemen dataChapter 05 pertemuan 7- donpas - manajemen data
Chapter 05 pertemuan 7- donpas - manajemen data
 
W 8 introduction to database
W 8  introduction to databaseW 8  introduction to database
W 8 introduction to database
 
Uses of dbms
Uses of dbmsUses of dbms
Uses of dbms
 
Data base management system
Data base management systemData base management system
Data base management system
 
Database
DatabaseDatabase
Database
 
Database
DatabaseDatabase
Database
 
Database Intro
Database IntroDatabase Intro
Database Intro
 
DBMS PART 1.docx
DBMS PART 1.docxDBMS PART 1.docx
DBMS PART 1.docx
 
DATABASE MANAGEMENT
DATABASE MANAGEMENTDATABASE MANAGEMENT
DATABASE MANAGEMENT
 
Database management system
Database management systemDatabase management system
Database management system
 
Mis chapter 7 database systems
Mis chapter 7 database systemsMis chapter 7 database systems
Mis chapter 7 database systems
 
database management system (DBMS)
database management system (DBMS)database management system (DBMS)
database management system (DBMS)
 

Mehr von Sumama Shakir

Chemistry Short Question Notes 9th Exercise full Book
Chemistry Short Question Notes 9th Exercise full BookChemistry Short Question Notes 9th Exercise full Book
Chemistry Short Question Notes 9th Exercise full BookSumama Shakir
 
Chemistry Short Question Notes 9th Exercise full Book
Chemistry Short Question Notes 9th Exercise full BookChemistry Short Question Notes 9th Exercise full Book
Chemistry Short Question Notes 9th Exercise full BookSumama Shakir
 
9th Chemistry Numericals 1st Chapter
9th Chemistry Numericals 1st Chapter9th Chemistry Numericals 1st Chapter
9th Chemistry Numericals 1st ChapterSumama Shakir
 
Chemistry 10th Urdu medium Notes Solved
Chemistry 10th Urdu medium Notes SolvedChemistry 10th Urdu medium Notes Solved
Chemistry 10th Urdu medium Notes SolvedSumama Shakir
 
Chemistry 9th Class Test Yourself Full Book
Chemistry 9th Class Test Yourself Full Book Chemistry 9th Class Test Yourself Full Book
Chemistry 9th Class Test Yourself Full Book Sumama Shakir
 
10th Class Chemistry Urdu Medium Full Book Exercise Short Answers
10th Class Chemistry  Urdu Medium Full Book Exercise Short Answers10th Class Chemistry  Urdu Medium Full Book Exercise Short Answers
10th Class Chemistry Urdu Medium Full Book Exercise Short AnswersSumama Shakir
 
Chemistry 10th in English medium,This book is by Punjab Curriculum and Textbo...
Chemistry 10th in English medium,This book is by Punjab Curriculum and Textbo...Chemistry 10th in English medium,This book is by Punjab Curriculum and Textbo...
Chemistry 10th in English medium,This book is by Punjab Curriculum and Textbo...Sumama Shakir
 
Chemistry 9Th Book, PUNJAB TEXT BOOK
Chemistry 9Th Book, PUNJAB TEXT BOOK Chemistry 9Th Book, PUNJAB TEXT BOOK
Chemistry 9Th Book, PUNJAB TEXT BOOK Sumama Shakir
 
Nitric acid preparation & uses
Nitric acid preparation &  usesNitric acid preparation &  uses
Nitric acid preparation & usesSumama Shakir
 
Nitric acid Preparation & Uses
Nitric acid Preparation & UsesNitric acid Preparation & Uses
Nitric acid Preparation & UsesSumama Shakir
 
Nitric acid Preparation & Uses
Nitric acid Preparation & UsesNitric acid Preparation & Uses
Nitric acid Preparation & UsesSumama Shakir
 
Nitric acid Preparation & Uses
Nitric acid Preparation & UsesNitric acid Preparation & Uses
Nitric acid Preparation & UsesSumama Shakir
 
Nitric acid Preparation & Uses
Nitric acid Preparation & UsesNitric acid Preparation & Uses
Nitric acid Preparation & UsesSumama Shakir
 
Nitric acid Preparation & Uses Raw materials, Flow sheet diagram unit operat...
Nitric acid Preparation & Uses Raw materials, Flow sheet diagram unit operat...Nitric acid Preparation & Uses Raw materials, Flow sheet diagram unit operat...
Nitric acid Preparation & Uses Raw materials, Flow sheet diagram unit operat...Sumama Shakir
 
Nitric acid Preparation & Uses Raw materials, Flow sheet diagram unit operat...
Nitric acid Preparation & Uses Raw materials, Flow sheet diagram unit operat...Nitric acid Preparation & Uses Raw materials, Flow sheet diagram unit operat...
Nitric acid Preparation & Uses Raw materials, Flow sheet diagram unit operat...Sumama Shakir
 
Nitric acid Preparation & Uses
Nitric acid Preparation & UsesNitric acid Preparation & Uses
Nitric acid Preparation & UsesSumama Shakir
 
preparation and uses of nitric acid
preparation and uses of nitric acid preparation and uses of nitric acid
preparation and uses of nitric acid Sumama Shakir
 
computer and security
computer and security computer and security
computer and security Sumama Shakir
 
computer and society impact of Computer in society
computer and society  impact of Computer in society computer and society  impact of Computer in society
computer and society impact of Computer in society Sumama Shakir
 
Computer and their Uses types of computer
Computer and their Uses types of computer Computer and their Uses types of computer
Computer and their Uses types of computer Sumama Shakir
 

Mehr von Sumama Shakir (20)

Chemistry Short Question Notes 9th Exercise full Book
Chemistry Short Question Notes 9th Exercise full BookChemistry Short Question Notes 9th Exercise full Book
Chemistry Short Question Notes 9th Exercise full Book
 
Chemistry Short Question Notes 9th Exercise full Book
Chemistry Short Question Notes 9th Exercise full BookChemistry Short Question Notes 9th Exercise full Book
Chemistry Short Question Notes 9th Exercise full Book
 
9th Chemistry Numericals 1st Chapter
9th Chemistry Numericals 1st Chapter9th Chemistry Numericals 1st Chapter
9th Chemistry Numericals 1st Chapter
 
Chemistry 10th Urdu medium Notes Solved
Chemistry 10th Urdu medium Notes SolvedChemistry 10th Urdu medium Notes Solved
Chemistry 10th Urdu medium Notes Solved
 
Chemistry 9th Class Test Yourself Full Book
Chemistry 9th Class Test Yourself Full Book Chemistry 9th Class Test Yourself Full Book
Chemistry 9th Class Test Yourself Full Book
 
10th Class Chemistry Urdu Medium Full Book Exercise Short Answers
10th Class Chemistry  Urdu Medium Full Book Exercise Short Answers10th Class Chemistry  Urdu Medium Full Book Exercise Short Answers
10th Class Chemistry Urdu Medium Full Book Exercise Short Answers
 
Chemistry 10th in English medium,This book is by Punjab Curriculum and Textbo...
Chemistry 10th in English medium,This book is by Punjab Curriculum and Textbo...Chemistry 10th in English medium,This book is by Punjab Curriculum and Textbo...
Chemistry 10th in English medium,This book is by Punjab Curriculum and Textbo...
 
Chemistry 9Th Book, PUNJAB TEXT BOOK
Chemistry 9Th Book, PUNJAB TEXT BOOK Chemistry 9Th Book, PUNJAB TEXT BOOK
Chemistry 9Th Book, PUNJAB TEXT BOOK
 
Nitric acid preparation & uses
Nitric acid preparation &  usesNitric acid preparation &  uses
Nitric acid preparation & uses
 
Nitric acid Preparation & Uses
Nitric acid Preparation & UsesNitric acid Preparation & Uses
Nitric acid Preparation & Uses
 
Nitric acid Preparation & Uses
Nitric acid Preparation & UsesNitric acid Preparation & Uses
Nitric acid Preparation & Uses
 
Nitric acid Preparation & Uses
Nitric acid Preparation & UsesNitric acid Preparation & Uses
Nitric acid Preparation & Uses
 
Nitric acid Preparation & Uses
Nitric acid Preparation & UsesNitric acid Preparation & Uses
Nitric acid Preparation & Uses
 
Nitric acid Preparation & Uses Raw materials, Flow sheet diagram unit operat...
Nitric acid Preparation & Uses Raw materials, Flow sheet diagram unit operat...Nitric acid Preparation & Uses Raw materials, Flow sheet diagram unit operat...
Nitric acid Preparation & Uses Raw materials, Flow sheet diagram unit operat...
 
Nitric acid Preparation & Uses Raw materials, Flow sheet diagram unit operat...
Nitric acid Preparation & Uses Raw materials, Flow sheet diagram unit operat...Nitric acid Preparation & Uses Raw materials, Flow sheet diagram unit operat...
Nitric acid Preparation & Uses Raw materials, Flow sheet diagram unit operat...
 
Nitric acid Preparation & Uses
Nitric acid Preparation & UsesNitric acid Preparation & Uses
Nitric acid Preparation & Uses
 
preparation and uses of nitric acid
preparation and uses of nitric acid preparation and uses of nitric acid
preparation and uses of nitric acid
 
computer and security
computer and security computer and security
computer and security
 
computer and society impact of Computer in society
computer and society  impact of Computer in society computer and society  impact of Computer in society
computer and society impact of Computer in society
 
Computer and their Uses types of computer
Computer and their Uses types of computer Computer and their Uses types of computer
Computer and their Uses types of computer
 

Kürzlich hochgeladen

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 

Kürzlich hochgeladen (20)

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 

Lecture27

  • 2.  Introduction and Purpose of Databases  Databases vs. File System 2
  • 3. DATA  What is Data?  In simple words data can be facts related to any object in consideration.  For example your name, age, height, weight, etc. are some data related to you.  A picture , image , file , pdf etc. can also be considered data. 3
  • 4. WHAT IS A DATABASE  Database is a systematic collection of data. Databases support storage and manipulation of data. Databases make data management easy. For examples:  An online telephone directory would definitely use database to store data pertaining to people, phone numbers, other contact details, etc.  Electricity service provider is obviously using a database to manage billing , client related issues, to handle fault data, etc.  Facebook also needs to store, manipulate and present data related to members, their friends, member activities, messages, advertisements and lot more. 4
  • 5. APPLICATIONS OF DBMS  Banking : for customer information, accounts and loans and banking transactions.  Universities : for student registrations and grades.  Online shopping : Everyone wants to shop from home. Everyday new products are added and sold only with the help of DBMS. Purchase information, invoice bills and payment, all of these are done with the help of DBMS.  Airlines : for reservations and schedule information.  Credit card transactions : for purchases on credit cards and generation of monthly statements.  Library Management System : maintain all the information relate to book issue dates, name of the book, author and availability of the book. 5
  • 6. CONT.…  Telecommunications : for keeping records of call made, generating monthly bills, maintaining balances on prepaid calling cards.  Sales : for customer, product and purchase information.  Finance : for storing information about holdings, sales, and purchases of financial instruments such as stocks and bonds.  Manufacturing : for management of supply chain and for tracking production of items in factories, inventories of items and orders for items.  Human Resource : for information about employees, salaries, payroll taxes and benefits. 6
  • 7. WHAT IS A DATABASE MANAGEMENT SYSTEM (DBMS)?  A database-management system (DBMS) is a computer-software application that interacts with end-users, other applications, and the database itself to capture and analyse data.  A general-purpose DBMS allows the definition, creation, querying, update, and administration of databases.  It also helps to control access to the database.  Database Management Systems are not a new concept and as such had been first implemented in 1960s. 7
  • 8. DATABASE LANGUAGES  Database is built and maintained by using a database programming language.  Database languages are used for read, update and store data in a database.  There are several such languages that can be used for this purpose;  Microsoft Access is one of the most popular database platforms on the market today.  SQL (Structured Query Language) is the most common database language and is used by most databases today. We use SQL for a database for a medium to large business.  Server databases like MySQL, Microsoft SQL Server, and Oracle are enormously powerful 8
  • 9. WHAT IS THE STRUCTURE OF A DATABASE?  A database is made up of tables that contain columns (field) and rows (records) can be designed to hold a specific type of data, such as a number, text or a date.  Data is separated by categories into tables in order to avoid duplication.  For example, a business might have a table for Employees, one for Customers and another for Products. 9
  • 10. DATABASE COMPONENTS  A database is made up of several main components.  Schema - A database contains one or more schemas, which is basically a collection of one or more tables of data.  Table - Each table contains multiple columns, which are similar to columns in a spread sheet. A table can have as little as two columns and as many as one hundred or more columns, depending on the type of data being stored in the table.  Column - Each column contains one of several types of data or values, like dates, numeric or integer values, and alphanumeric values (also known as varchar).  Row - Data in a table is listed in rows, which are like rows of data in a spread sheet. Often there are hundreds or thousands of rows of data in a table. 10
  • 12. WHAT CAN A DATABASE DO?  On the surface, a database might seem much like a spread sheet; it has data arranged in columns and rows. But that is where the similarity ends because a database is far more powerful.  If the database is relational. This means that you can create relationships between tables.  if you linked a Customers table with an Orders table, you could find all purchase orders from the Orders table that a single customer from the Customers table ever processed,  A database has broad searching functionality.  For example, a sales department could quickly search for and find all sales personnel who had achieved a certain amount of sales over a particular time period.  A database can update records in bulk – even millions or more records.  For example, if you wanted to add new columns or apply a data patch of some sort. 12
  • 13. CONT..  A database can perform complex aggregate calculations across multiple tables.  For example, you could list expenses across multiple retail outlets, including all possible sub-totals, and then a final total.  A database can enforce consistency and data integrity, which means that it can avoid duplication and ensure data accuracy through its design and a series of constraints.  A database will include forms so that users can input or edit data. In addition, it will have the facility to generate reports from the data. A report is simply the answer to a question, called a query in database-speak. For instance, you might query the database to find out a company's gross income over a particular time period. The database will return to you the report with your requested information. 13
  • 14. DATABASES VS. FILE SYSTEM  A Database Management System (DMS) is a combination of computer software, hardware, and information designed to electronically manipulate data via computer processing.  Two types of database management systems are DBMS’s and FMS’s.  A File Management System (FMS) is a Database Management System that allows access to single files or tables at a time. FMS’s accommodate flat files that have no relation to other files.  The FMS was the predecessor for the Database Management System (DBMS), which allows access to multiple files or tables at a time. 14
  • 15.  A database management system coordinates both the physical and the logical access to the data, whereas a file- processing system coordinates only the physical access.  A database management system is designed to allow flexible access to data (i.e. queries), whereas a file- processing system is designed to allow predetermined access to data (i.e. compiled programs).  A database management system is designed to coordinate multiple users accessing the same data at the same time. A file-processing system is usually designed to allow one or more programs to access different data files at the same time. In a file-processing system, a file can be accessed by two programs concurrently only if both programs have read- only access to the file. 15
  • 16. CONT.…  Redundancy( duplication of data) is control in DBMS, but not in file system.  Unauthorized access is restricted in DBMS but not in the file system.  DBMS provide back up and recovery whereas data lost in file system can't be recovered.  DBMS provide multiple user interfaces. Data is isolated in file system. 16
  • 17.  Lets explore some data base systems.  Student database  A shop database etc. 17