SlideShare a Scribd company logo
Database Management
System
Database
A database is an organized collection of data. The
data are typically organized to model relevant
aspects of reality (for example, the availability of
rooms in hotels), in a way that supports
processes requiring this information (for
example, finding a hotel with vacancies).
Is a structured collection of records or data that is
stored in a computer system.
The term database system implies that the data
are managed to some level of quality (measured
in terms of accuracy, availability, usability, and
resilience) and this in turn often implies the use
of a general-purpose database management
system (DBMS).
Database management
System
A general-purpose DBMS is typically a
complex software system that meets
many usage requirements to properly
maintain its databases which are often
large and complex.
Field Name
Record
Field
Uses
 Increase productivity through real-time component
data and design re-use.
 Consolidate parts, inventory and manufacturing
requirements.
 Decision support through integration with
enterprise business systems applications.
 Information systems can be changed easily
according to the company's requirements.
Examples
 Oracle
 Microsoft Access
 Microsoft SQL server
 Firebird
 FileMaker
Applications
 computerized library systems
 automated teller machines
 flight reservation systems
 computerized parts inventory systems
Basic Definitions
Attribute - a property or description of an entity. A toy
department employee entity could have attributes
describing the employee’s name, salary, and years of
service.
Domain - a set of possible values for an attribute.
Entity - an object in the real world that is distinguishable
from other objects such as the green dragon toy.
Entity set - a collection of similar entities such as all of the
toys in the toy department.
Key - A key is an attribute (also known as column or field)
or a combination of attribute that is used to identify
records. Sometimes we might have to retrieve data
from more than one table, in those cases we require to
join tables with the help of keys. The purpose of the key
is to bind data together across tables without repeating
all of the data in every table.
Data Viewing
External, logical and internal view
 A DBMS Provides the ability for many different users to share data
and process resources. As there can be many different users, there
are many different database needs. The question is: How can a
single, unified database meet varying requirements of so many
users?
 A DBMS minimizes these problems by providing three views of the
database data: an external view (or user view), logical view (or
conceptual view) and physical (or internal) view. The user’s view of a
database program represents data in a format that is meaningful to a
user and to the software programs that process those data.
 One strength of a DBMS is that while there is typically only one
conceptual (or logical) and physical (or internal) view of the data,
there can be an endless number of different external views. This
feature allows users to see database information in a more
business-related way rather than from a technical, processing
viewpoint. Thus the logical view refers to the way the user views the
data, and the physical view refers to the way the data are physically
stored and processed.
DDL (Data Definition Language)
It is used to create and destroy databases and database objects. These
commands will primarily be used by database administrators during the
setup and removal phases of a database project.
Commands:
CREATE: Installing a database management system (DBMS) on a
computer allows you to create and manage many independent
databases. For example, you may want to maintain a database of
customer contacts for your sales department and a personnel database
for your HR department. The CREATE command can be used to
establish each of these databases on your platform. For example, the
command:
CREATE DATABASE employees
creates an empty database named "employees" on your DBMS.
USE: The USE command allows you to specify the database you wish to work with
within your DBMS. For example, if we're currently working in the sales database
and want to issue some commands that will affect the employees database, we
would preface them with the following SQL command:
USE employees
ALTER: Once you've created a table within a database, you may wish to modify the
definition of it. The ALTER command allows you to make changes to the structure of a
table without deleting and recreating it. Take a look at the following command:
ALTER TABLE personal_info
ADD salary money null
This example adds a new attribute to the personal_info table -- an employee's salary.
The "money" argument specifies that an employee's salary will be stored using a dollars
and cents format. Finally, the "null" keyword tells the database that it's OK for this field to
contain no value for any given employee.
DROP: The final command of the Data Definition Language, DROP, allows us to remove
entire database objects from our DBMS. For example, if we want to permanently remove
the personal info table that we created, we'd use the following command:
DROP TABLE personal_info
Similarly, the command below would be used to remove the entire employees database:
DROP DATABASE employees
Use this command with care! Remember that the DROP command removes entire data
structures from your database. If you want to remove individual records, use the
DELETE command of the Data Manipulation Language.
DML(Data Manipulation
Language)
It is used to retrieve, insert and modify database information. These
commands will be used by all database users during the routine
operation of the database.
Commands:
INSERT
The INSERT command in SQL is used to add records to an existing
table. Returning to the personal_info example from the previous
section, let's imagine that our HR department needs to add a new
employee to their database. They could use a command similar to
the one shown below:
INSERT INTO personal_info
values('bart','simpson',12345,$45000)
Note that there are four values specified for the record. These
correspond to the table attributes in the order they were defined:
first_name, last_name, employee_id, and salary.
SELECT
The SELECT command is the most commonly used command in SQL. It allows
database users to retrieve the specific information they desire from an operational
database. Let's take a look at a few examples, again using the personal_info table
from our employees database.
The command shown below retrieves all of the information contained within the
personal_info table. Note that the asterisk is used as a wildcard in SQL. This
literally means "Select everything from the personal_info table."
SELECT *
FROM personal_info
Alternatively, users may want to limit the attributes that are retrieved from the
database. For example, the Human Resources department may require a list of
the last names of all employees in the company. The following SQL command
would retrieve only that information:
SELECT last_name
FROM personal_info
Finally, the WHERE clause can be used to limit the records that are retrieved to
those that meet specified criteria. The CEO might be interested in reviewing the
personnel records of all highly paid employees. The following command retrieves
all of the data contained within personal_info for records that have a salary value
greater than $50,000:
SELECT *
FROM personal_info
WHERE salary > $50000
UPDATE
The UPDATE command can be used to modify information contained within a
table, either in bulk or individually. Each year, our company gives all employees a
3% cost-of-living increase in their salary. The following SQL command could be
used to quickly apply this to all of the employees stored in the database:
UPDATE personal_info
SET salary = salary * 1.03
On the other hand, our new employee Bart Simpson has demonstrated
performance above and beyond the call of duty. Management wishes to recognize
his stellar accomplishments with a $5,000 raise. The WHERE clause could be
used to single out Bart for this raise:
UPDATE personal_info
SET salary = salary + $5000
WHERE employee_id = 12345
DELETE
Finally, let's take a look at the DELETE command. You'll find that the syntax of this
command is similar to that of the other DML commands. Unfortunately, our latest
corporate earnings report didn't quite meet expectations and poor Bart has been
laid off. The DELETE command with a WHERE clause can be used to remove his
record from the personal_info table:
DELETE FROM personal_info
WHERE employee_id = 12345

More Related Content

What's hot

Data flow diagram
Data flow diagramData flow diagram
Data flow diagram
Fizza Khan
 
Star ,Snow and Fact-Constullation Schemas??
Star ,Snow and  Fact-Constullation Schemas??Star ,Snow and  Fact-Constullation Schemas??
Star ,Snow and Fact-Constullation Schemas??Abdul Aslam
 
Management Information System (Full Notes)
Management Information System (Full Notes)Management Information System (Full Notes)
Management Information System (Full Notes)
Harish Chand
 
Data Flow Diagrams
Data Flow DiagramsData Flow Diagrams
Data Flow Diagrams
Reetesh Gupta
 
Data Dictionary
Data DictionaryData Dictionary
Data Dictionary
Vishal Anand
 
Introduction of information technology to managers
Introduction of information technology to managersIntroduction of information technology to managers
Introduction of information technology to managers
AbdulQadir Koitewale
 
Oltp vs olap
Oltp vs olapOltp vs olap
Oltp vs olap
Mr. Fmhyudin
 
Types of database
Types of databaseTypes of database
Types of database
faizan1712818
 
Dbms Introduction and Basics
Dbms Introduction and BasicsDbms Introduction and Basics
Dbms Introduction and Basics
SHIKHA GAUTAM
 
DBMS ARCHITECTURE.pptx
DBMS ARCHITECTURE.pptxDBMS ARCHITECTURE.pptx
DBMS ARCHITECTURE.pptx
Anusha sivakumar
 
Management information system (MIS)
Management information system (MIS)Management information system (MIS)
Management information system (MIS)
Bhupen Meena
 
Dbms architecture
Dbms architectureDbms architecture
Dbms architecture
Shubham Dwivedi
 
Types Of Keys in DBMS
Types Of Keys in DBMSTypes Of Keys in DBMS
Types Of Keys in DBMS
PadamNepal1
 
Data Mining: Concepts and Techniques — Chapter 2 —
Data Mining:  Concepts and Techniques — Chapter 2 —Data Mining:  Concepts and Techniques — Chapter 2 —
Data Mining: Concepts and Techniques — Chapter 2 —
Salah Amean
 
Unit1 DBMS Introduction
Unit1 DBMS IntroductionUnit1 DBMS Introduction
Unit1 DBMS Introduction
MUHAMMED MASHAHIL PUKKUNNUMMAL
 
Database Management System Introduction
Database Management System IntroductionDatabase Management System Introduction
Database Management System Introduction
Smriti Jain
 
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NFDatabase Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Oum Saokosal
 
Tableau - bar chart
Tableau - bar chartTableau - bar chart
Tableau - bar chart
Learnbay Datascience
 

What's hot (20)

Data flow diagram
Data flow diagramData flow diagram
Data flow diagram
 
The role of information system
The role of information system The role of information system
The role of information system
 
Star ,Snow and Fact-Constullation Schemas??
Star ,Snow and  Fact-Constullation Schemas??Star ,Snow and  Fact-Constullation Schemas??
Star ,Snow and Fact-Constullation Schemas??
 
RDBMS
RDBMSRDBMS
RDBMS
 
Management Information System (Full Notes)
Management Information System (Full Notes)Management Information System (Full Notes)
Management Information System (Full Notes)
 
Data Flow Diagrams
Data Flow DiagramsData Flow Diagrams
Data Flow Diagrams
 
Data Dictionary
Data DictionaryData Dictionary
Data Dictionary
 
Introduction of information technology to managers
Introduction of information technology to managersIntroduction of information technology to managers
Introduction of information technology to managers
 
Oltp vs olap
Oltp vs olapOltp vs olap
Oltp vs olap
 
Types of database
Types of databaseTypes of database
Types of database
 
Dbms Introduction and Basics
Dbms Introduction and BasicsDbms Introduction and Basics
Dbms Introduction and Basics
 
DBMS ARCHITECTURE.pptx
DBMS ARCHITECTURE.pptxDBMS ARCHITECTURE.pptx
DBMS ARCHITECTURE.pptx
 
Management information system (MIS)
Management information system (MIS)Management information system (MIS)
Management information system (MIS)
 
Dbms architecture
Dbms architectureDbms architecture
Dbms architecture
 
Types Of Keys in DBMS
Types Of Keys in DBMSTypes Of Keys in DBMS
Types Of Keys in DBMS
 
Data Mining: Concepts and Techniques — Chapter 2 —
Data Mining:  Concepts and Techniques — Chapter 2 —Data Mining:  Concepts and Techniques — Chapter 2 —
Data Mining: Concepts and Techniques — Chapter 2 —
 
Unit1 DBMS Introduction
Unit1 DBMS IntroductionUnit1 DBMS Introduction
Unit1 DBMS Introduction
 
Database Management System Introduction
Database Management System IntroductionDatabase Management System Introduction
Database Management System Introduction
 
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NFDatabase Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
 
Tableau - bar chart
Tableau - bar chartTableau - bar chart
Tableau - bar chart
 

Similar to Database management system by Neeraj Bhandari ( Surkhet.Nepal )

Creating Database 2010
Creating Database 2010Creating Database 2010
Creating Database 2010
tgushi12
 
Introduction to database with ms access(DBMS)
Introduction to database with ms access(DBMS)Introduction to database with ms access(DBMS)
Introduction to database with ms access(DBMS)
07HetviBhagat
 
Introduction to database with ms access.hetvii
Introduction to database with ms access.hetviiIntroduction to database with ms access.hetvii
Introduction to database with ms access.hetvii
07HetviBhagat
 
SQL interview questions by jeetendra mandal - part 4
SQL interview questions by jeetendra mandal - part 4SQL interview questions by jeetendra mandal - part 4
SQL interview questions by jeetendra mandal - part 4
jeetendra mandal
 
Database fundamentals
Database fundamentalsDatabase fundamentals
Database fundamentals
Then Murugeshwari
 
Air Line Management System | DBMS project
Air Line Management System | DBMS projectAir Line Management System | DBMS project
Air Line Management System | DBMS project
AniketHandore
 
Introduction to the Structured Query Language SQL
Introduction to the Structured Query Language SQLIntroduction to the Structured Query Language SQL
Introduction to the Structured Query Language SQL
Harmony Kwawu
 
HRIS UNIT 2 2021.pptx
HRIS UNIT 2 2021.pptxHRIS UNIT 2 2021.pptx
HRIS UNIT 2 2021.pptx
Dr. V. Karthiga Rajasekaran
 
Chapter16
Chapter16Chapter16
Chapter16
gourab87
 
Introduction to sql server
Introduction to sql serverIntroduction to sql server
Introduction to sql serverVinay Thota
 
PPT SQL CLASS.pptx
PPT SQL CLASS.pptxPPT SQL CLASS.pptx
PPT SQL CLASS.pptx
AngeOuattara
 
Data base
Data baseData base
Data base
Girish Gowda
 
Database Management System (DBMS).pptx
Database Management System (DBMS).pptxDatabase Management System (DBMS).pptx
Database Management System (DBMS).pptx
GevitaChinnaiah
 
Bank mangement system
Bank mangement systemBank mangement system
Bank mangement system
FaisalGhffar
 
Lecture on DBMS & MySQL.pdf v. C. .
Lecture on DBMS & MySQL.pdf v.  C.     .Lecture on DBMS & MySQL.pdf v.  C.     .
Lecture on DBMS & MySQL.pdf v. C. .
MayankSinghRawat6
 
Database Management Systems (Mcom Ecommerce)
Database Management Systems (Mcom Ecommerce)Database Management Systems (Mcom Ecommerce)
Database Management Systems (Mcom Ecommerce)
Rupen Parte
 
Database Project Airport management System
Database Project Airport management SystemDatabase Project Airport management System
Database Project Airport management System
Fahad Chishti
 
Database System
Database SystemDatabase System
Database System
Hasaka Sasaranga
 

Similar to Database management system by Neeraj Bhandari ( Surkhet.Nepal ) (20)

Creating Database 2010
Creating Database 2010Creating Database 2010
Creating Database 2010
 
Introduction to database with ms access(DBMS)
Introduction to database with ms access(DBMS)Introduction to database with ms access(DBMS)
Introduction to database with ms access(DBMS)
 
Introduction to database with ms access.hetvii
Introduction to database with ms access.hetviiIntroduction to database with ms access.hetvii
Introduction to database with ms access.hetvii
 
SQL interview questions by jeetendra mandal - part 4
SQL interview questions by jeetendra mandal - part 4SQL interview questions by jeetendra mandal - part 4
SQL interview questions by jeetendra mandal - part 4
 
Database fundamentals
Database fundamentalsDatabase fundamentals
Database fundamentals
 
Air Line Management System | DBMS project
Air Line Management System | DBMS projectAir Line Management System | DBMS project
Air Line Management System | DBMS project
 
Introduction to the Structured Query Language SQL
Introduction to the Structured Query Language SQLIntroduction to the Structured Query Language SQL
Introduction to the Structured Query Language SQL
 
HRIS UNIT 2 2021.pptx
HRIS UNIT 2 2021.pptxHRIS UNIT 2 2021.pptx
HRIS UNIT 2 2021.pptx
 
Chapter16
Chapter16Chapter16
Chapter16
 
Introduction to sql server
Introduction to sql serverIntroduction to sql server
Introduction to sql server
 
lovely
lovelylovely
lovely
 
PPT SQL CLASS.pptx
PPT SQL CLASS.pptxPPT SQL CLASS.pptx
PPT SQL CLASS.pptx
 
[PHPUGPH] PHP Roadshow - MySQL
[PHPUGPH] PHP Roadshow - MySQL[PHPUGPH] PHP Roadshow - MySQL
[PHPUGPH] PHP Roadshow - MySQL
 
Data base
Data baseData base
Data base
 
Database Management System (DBMS).pptx
Database Management System (DBMS).pptxDatabase Management System (DBMS).pptx
Database Management System (DBMS).pptx
 
Bank mangement system
Bank mangement systemBank mangement system
Bank mangement system
 
Lecture on DBMS & MySQL.pdf v. C. .
Lecture on DBMS & MySQL.pdf v.  C.     .Lecture on DBMS & MySQL.pdf v.  C.     .
Lecture on DBMS & MySQL.pdf v. C. .
 
Database Management Systems (Mcom Ecommerce)
Database Management Systems (Mcom Ecommerce)Database Management Systems (Mcom Ecommerce)
Database Management Systems (Mcom Ecommerce)
 
Database Project Airport management System
Database Project Airport management SystemDatabase Project Airport management System
Database Project Airport management System
 
Database System
Database SystemDatabase System
Database System
 

More from Neeraj Bhandari

Dividend tax by Neeraj Bhandari (Surkhet, Nepal)
Dividend tax by Neeraj Bhandari (Surkhet, Nepal)Dividend tax by Neeraj Bhandari (Surkhet, Nepal)
Dividend tax by Neeraj Bhandari (Surkhet, Nepal)
Neeraj Bhandari
 
Summer Internship Report Project - NIC ASIA BANK Nepal by Neeraj Bhandari (Su...
Summer Internship Report Project - NIC ASIA BANK Nepal by Neeraj Bhandari (Su...Summer Internship Report Project - NIC ASIA BANK Nepal by Neeraj Bhandari (Su...
Summer Internship Report Project - NIC ASIA BANK Nepal by Neeraj Bhandari (Su...
Neeraj Bhandari
 
Introducing Nepal by Neeraj Bhandari (Surkhet Nepal)
Introducing Nepal by Neeraj Bhandari (Surkhet Nepal)Introducing Nepal by Neeraj Bhandari (Surkhet Nepal)
Introducing Nepal by Neeraj Bhandari (Surkhet Nepal)
Neeraj Bhandari
 
Introducing Nepal by Neeraj Bhandari (Surkhet Nepal)
Introducing Nepal by Neeraj Bhandari (Surkhet Nepal)Introducing Nepal by Neeraj Bhandari (Surkhet Nepal)
Introducing Nepal by Neeraj Bhandari (Surkhet Nepal)
Neeraj Bhandari
 
Retail Management by Neeraj Bhandari (Surkhet, Nepal)
Retail Management by Neeraj Bhandari (Surkhet, Nepal)Retail Management by Neeraj Bhandari (Surkhet, Nepal)
Retail Management by Neeraj Bhandari (Surkhet, Nepal)
Neeraj Bhandari
 
Entrepreneurial Barriers and Challenges by Neeraj Bhandari (Surkhet, Nepal)
Entrepreneurial Barriers and Challenges by Neeraj Bhandari (Surkhet, Nepal)Entrepreneurial Barriers and Challenges by Neeraj Bhandari (Surkhet, Nepal)
Entrepreneurial Barriers and Challenges by Neeraj Bhandari (Surkhet, Nepal)
Neeraj Bhandari
 
Introduction to Body Language by Neeraj Bhandari (Surkhet, Nepal)
Introduction to Body Language by Neeraj Bhandari (Surkhet, Nepal)Introduction to Body Language by Neeraj Bhandari (Surkhet, Nepal)
Introduction to Body Language by Neeraj Bhandari (Surkhet, Nepal)
Neeraj Bhandari
 
Importance of Communication in Business by Neeraj Bhandari (Surkhet, Nepal)
Importance of Communication in Business by Neeraj Bhandari (Surkhet, Nepal)Importance of Communication in Business by Neeraj Bhandari (Surkhet, Nepal)
Importance of Communication in Business by Neeraj Bhandari (Surkhet, Nepal)
Neeraj Bhandari
 
Introduction to Planning by Neeraj Bhandari (Surkhet,Nepal)
Introduction to Planning by Neeraj Bhandari (Surkhet,Nepal)Introduction to Planning by Neeraj Bhandari (Surkhet,Nepal)
Introduction to Planning by Neeraj Bhandari (Surkhet,Nepal)
Neeraj Bhandari
 
Report on Nepal Telecom by Neeraj Bhandari (Surkhet, Nepal)
Report on Nepal Telecom by Neeraj Bhandari (Surkhet, Nepal)Report on Nepal Telecom by Neeraj Bhandari (Surkhet, Nepal)
Report on Nepal Telecom by Neeraj Bhandari (Surkhet, Nepal)
Neeraj Bhandari
 
Project Report on Bajaj and Hero Honda by Neeraj Bhandari (Surkhet,Nepal)
Project Report on Bajaj and Hero Honda by Neeraj Bhandari (Surkhet,Nepal)Project Report on Bajaj and Hero Honda by Neeraj Bhandari (Surkhet,Nepal)
Project Report on Bajaj and Hero Honda by Neeraj Bhandari (Surkhet,Nepal)
Neeraj Bhandari
 
Body Languagge by Neeraj Bhandari (Surkhet,Nepal)
Body Languagge by Neeraj Bhandari (Surkhet,Nepal)Body Languagge by Neeraj Bhandari (Surkhet,Nepal)
Body Languagge by Neeraj Bhandari (Surkhet,Nepal)
Neeraj Bhandari
 
Entrepreneurial Barriers and Challenges by Neeraj Bhandari (Surkhet,Nepal)
Entrepreneurial Barriers and Challenges by Neeraj Bhandari (Surkhet,Nepal)Entrepreneurial Barriers and Challenges by Neeraj Bhandari (Surkhet,Nepal)
Entrepreneurial Barriers and Challenges by Neeraj Bhandari (Surkhet,Nepal)
Neeraj Bhandari
 
Office Etiquette by Neeraj Bhandari (Surkhet,Nepal)
Office Etiquette by Neeraj Bhandari (Surkhet,Nepal)Office Etiquette by Neeraj Bhandari (Surkhet,Nepal)
Office Etiquette by Neeraj Bhandari (Surkhet,Nepal)
Neeraj Bhandari
 
Business Plan by Neeraj Bhandari (Surkhet,Nepal)
Business Plan by Neeraj Bhandari (Surkhet,Nepal)Business Plan by Neeraj Bhandari (Surkhet,Nepal)
Business Plan by Neeraj Bhandari (Surkhet,Nepal)
Neeraj Bhandari
 
Organizational Structure by Neeraj Bhandari (Surkhet,Nepal)
Organizational Structure by Neeraj Bhandari (Surkhet,Nepal)Organizational Structure by Neeraj Bhandari (Surkhet,Nepal)
Organizational Structure by Neeraj Bhandari (Surkhet,Nepal)
Neeraj Bhandari
 
Print Marketing by Neeraj Bhandari (Surkhet,Nepal)
Print Marketing by Neeraj Bhandari (Surkhet,Nepal)Print Marketing by Neeraj Bhandari (Surkhet,Nepal)
Print Marketing by Neeraj Bhandari (Surkhet,Nepal)
Neeraj Bhandari
 
Retail Management by Neeraj bhandari (Surkhet Nepal)
Retail Management by Neeraj bhandari (Surkhet Nepal)Retail Management by Neeraj bhandari (Surkhet Nepal)
Retail Management by Neeraj bhandari (Surkhet Nepal)
Neeraj Bhandari
 
International Trade and Policy- Introduction by Neeraj Bhandari (Surkhet Nepal)
International Trade and Policy- Introduction by Neeraj Bhandari (Surkhet Nepal)International Trade and Policy- Introduction by Neeraj Bhandari (Surkhet Nepal)
International Trade and Policy- Introduction by Neeraj Bhandari (Surkhet Nepal)
Neeraj Bhandari
 
NBFCs and Cooperative Banks by Neeraj Bhandari (Surkhet Nepal)
NBFCs and Cooperative Banks by Neeraj Bhandari (Surkhet Nepal)NBFCs and Cooperative Banks by Neeraj Bhandari (Surkhet Nepal)
NBFCs and Cooperative Banks by Neeraj Bhandari (Surkhet Nepal)
Neeraj Bhandari
 

More from Neeraj Bhandari (20)

Dividend tax by Neeraj Bhandari (Surkhet, Nepal)
Dividend tax by Neeraj Bhandari (Surkhet, Nepal)Dividend tax by Neeraj Bhandari (Surkhet, Nepal)
Dividend tax by Neeraj Bhandari (Surkhet, Nepal)
 
Summer Internship Report Project - NIC ASIA BANK Nepal by Neeraj Bhandari (Su...
Summer Internship Report Project - NIC ASIA BANK Nepal by Neeraj Bhandari (Su...Summer Internship Report Project - NIC ASIA BANK Nepal by Neeraj Bhandari (Su...
Summer Internship Report Project - NIC ASIA BANK Nepal by Neeraj Bhandari (Su...
 
Introducing Nepal by Neeraj Bhandari (Surkhet Nepal)
Introducing Nepal by Neeraj Bhandari (Surkhet Nepal)Introducing Nepal by Neeraj Bhandari (Surkhet Nepal)
Introducing Nepal by Neeraj Bhandari (Surkhet Nepal)
 
Introducing Nepal by Neeraj Bhandari (Surkhet Nepal)
Introducing Nepal by Neeraj Bhandari (Surkhet Nepal)Introducing Nepal by Neeraj Bhandari (Surkhet Nepal)
Introducing Nepal by Neeraj Bhandari (Surkhet Nepal)
 
Retail Management by Neeraj Bhandari (Surkhet, Nepal)
Retail Management by Neeraj Bhandari (Surkhet, Nepal)Retail Management by Neeraj Bhandari (Surkhet, Nepal)
Retail Management by Neeraj Bhandari (Surkhet, Nepal)
 
Entrepreneurial Barriers and Challenges by Neeraj Bhandari (Surkhet, Nepal)
Entrepreneurial Barriers and Challenges by Neeraj Bhandari (Surkhet, Nepal)Entrepreneurial Barriers and Challenges by Neeraj Bhandari (Surkhet, Nepal)
Entrepreneurial Barriers and Challenges by Neeraj Bhandari (Surkhet, Nepal)
 
Introduction to Body Language by Neeraj Bhandari (Surkhet, Nepal)
Introduction to Body Language by Neeraj Bhandari (Surkhet, Nepal)Introduction to Body Language by Neeraj Bhandari (Surkhet, Nepal)
Introduction to Body Language by Neeraj Bhandari (Surkhet, Nepal)
 
Importance of Communication in Business by Neeraj Bhandari (Surkhet, Nepal)
Importance of Communication in Business by Neeraj Bhandari (Surkhet, Nepal)Importance of Communication in Business by Neeraj Bhandari (Surkhet, Nepal)
Importance of Communication in Business by Neeraj Bhandari (Surkhet, Nepal)
 
Introduction to Planning by Neeraj Bhandari (Surkhet,Nepal)
Introduction to Planning by Neeraj Bhandari (Surkhet,Nepal)Introduction to Planning by Neeraj Bhandari (Surkhet,Nepal)
Introduction to Planning by Neeraj Bhandari (Surkhet,Nepal)
 
Report on Nepal Telecom by Neeraj Bhandari (Surkhet, Nepal)
Report on Nepal Telecom by Neeraj Bhandari (Surkhet, Nepal)Report on Nepal Telecom by Neeraj Bhandari (Surkhet, Nepal)
Report on Nepal Telecom by Neeraj Bhandari (Surkhet, Nepal)
 
Project Report on Bajaj and Hero Honda by Neeraj Bhandari (Surkhet,Nepal)
Project Report on Bajaj and Hero Honda by Neeraj Bhandari (Surkhet,Nepal)Project Report on Bajaj and Hero Honda by Neeraj Bhandari (Surkhet,Nepal)
Project Report on Bajaj and Hero Honda by Neeraj Bhandari (Surkhet,Nepal)
 
Body Languagge by Neeraj Bhandari (Surkhet,Nepal)
Body Languagge by Neeraj Bhandari (Surkhet,Nepal)Body Languagge by Neeraj Bhandari (Surkhet,Nepal)
Body Languagge by Neeraj Bhandari (Surkhet,Nepal)
 
Entrepreneurial Barriers and Challenges by Neeraj Bhandari (Surkhet,Nepal)
Entrepreneurial Barriers and Challenges by Neeraj Bhandari (Surkhet,Nepal)Entrepreneurial Barriers and Challenges by Neeraj Bhandari (Surkhet,Nepal)
Entrepreneurial Barriers and Challenges by Neeraj Bhandari (Surkhet,Nepal)
 
Office Etiquette by Neeraj Bhandari (Surkhet,Nepal)
Office Etiquette by Neeraj Bhandari (Surkhet,Nepal)Office Etiquette by Neeraj Bhandari (Surkhet,Nepal)
Office Etiquette by Neeraj Bhandari (Surkhet,Nepal)
 
Business Plan by Neeraj Bhandari (Surkhet,Nepal)
Business Plan by Neeraj Bhandari (Surkhet,Nepal)Business Plan by Neeraj Bhandari (Surkhet,Nepal)
Business Plan by Neeraj Bhandari (Surkhet,Nepal)
 
Organizational Structure by Neeraj Bhandari (Surkhet,Nepal)
Organizational Structure by Neeraj Bhandari (Surkhet,Nepal)Organizational Structure by Neeraj Bhandari (Surkhet,Nepal)
Organizational Structure by Neeraj Bhandari (Surkhet,Nepal)
 
Print Marketing by Neeraj Bhandari (Surkhet,Nepal)
Print Marketing by Neeraj Bhandari (Surkhet,Nepal)Print Marketing by Neeraj Bhandari (Surkhet,Nepal)
Print Marketing by Neeraj Bhandari (Surkhet,Nepal)
 
Retail Management by Neeraj bhandari (Surkhet Nepal)
Retail Management by Neeraj bhandari (Surkhet Nepal)Retail Management by Neeraj bhandari (Surkhet Nepal)
Retail Management by Neeraj bhandari (Surkhet Nepal)
 
International Trade and Policy- Introduction by Neeraj Bhandari (Surkhet Nepal)
International Trade and Policy- Introduction by Neeraj Bhandari (Surkhet Nepal)International Trade and Policy- Introduction by Neeraj Bhandari (Surkhet Nepal)
International Trade and Policy- Introduction by Neeraj Bhandari (Surkhet Nepal)
 
NBFCs and Cooperative Banks by Neeraj Bhandari (Surkhet Nepal)
NBFCs and Cooperative Banks by Neeraj Bhandari (Surkhet Nepal)NBFCs and Cooperative Banks by Neeraj Bhandari (Surkhet Nepal)
NBFCs and Cooperative Banks by Neeraj Bhandari (Surkhet Nepal)
 

Recently uploaded

UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Welocme to ViralQR, your best QR code generator.
Welocme to ViralQR, your best QR code generator.Welocme to ViralQR, your best QR code generator.
Welocme to ViralQR, your best QR code generator.
ViralQR
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
Vlad Stirbu
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 

Recently uploaded (20)

UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Welocme to ViralQR, your best QR code generator.
Welocme to ViralQR, your best QR code generator.Welocme to ViralQR, your best QR code generator.
Welocme to ViralQR, your best QR code generator.
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 

Database management system by Neeraj Bhandari ( Surkhet.Nepal )

  • 2. Database A database is an organized collection of data. The data are typically organized to model relevant aspects of reality (for example, the availability of rooms in hotels), in a way that supports processes requiring this information (for example, finding a hotel with vacancies). Is a structured collection of records or data that is stored in a computer system. The term database system implies that the data are managed to some level of quality (measured in terms of accuracy, availability, usability, and resilience) and this in turn often implies the use of a general-purpose database management system (DBMS).
  • 3. Database management System A general-purpose DBMS is typically a complex software system that meets many usage requirements to properly maintain its databases which are often large and complex.
  • 5. Uses  Increase productivity through real-time component data and design re-use.  Consolidate parts, inventory and manufacturing requirements.  Decision support through integration with enterprise business systems applications.  Information systems can be changed easily according to the company's requirements.
  • 6. Examples  Oracle  Microsoft Access  Microsoft SQL server  Firebird  FileMaker
  • 7. Applications  computerized library systems  automated teller machines  flight reservation systems  computerized parts inventory systems
  • 8. Basic Definitions Attribute - a property or description of an entity. A toy department employee entity could have attributes describing the employee’s name, salary, and years of service. Domain - a set of possible values for an attribute. Entity - an object in the real world that is distinguishable from other objects such as the green dragon toy. Entity set - a collection of similar entities such as all of the toys in the toy department. Key - A key is an attribute (also known as column or field) or a combination of attribute that is used to identify records. Sometimes we might have to retrieve data from more than one table, in those cases we require to join tables with the help of keys. The purpose of the key is to bind data together across tables without repeating all of the data in every table.
  • 9. Data Viewing External, logical and internal view  A DBMS Provides the ability for many different users to share data and process resources. As there can be many different users, there are many different database needs. The question is: How can a single, unified database meet varying requirements of so many users?  A DBMS minimizes these problems by providing three views of the database data: an external view (or user view), logical view (or conceptual view) and physical (or internal) view. The user’s view of a database program represents data in a format that is meaningful to a user and to the software programs that process those data.  One strength of a DBMS is that while there is typically only one conceptual (or logical) and physical (or internal) view of the data, there can be an endless number of different external views. This feature allows users to see database information in a more business-related way rather than from a technical, processing viewpoint. Thus the logical view refers to the way the user views the data, and the physical view refers to the way the data are physically stored and processed.
  • 10. DDL (Data Definition Language) It is used to create and destroy databases and database objects. These commands will primarily be used by database administrators during the setup and removal phases of a database project. Commands: CREATE: Installing a database management system (DBMS) on a computer allows you to create and manage many independent databases. For example, you may want to maintain a database of customer contacts for your sales department and a personnel database for your HR department. The CREATE command can be used to establish each of these databases on your platform. For example, the command: CREATE DATABASE employees creates an empty database named "employees" on your DBMS. USE: The USE command allows you to specify the database you wish to work with within your DBMS. For example, if we're currently working in the sales database and want to issue some commands that will affect the employees database, we would preface them with the following SQL command: USE employees
  • 11. ALTER: Once you've created a table within a database, you may wish to modify the definition of it. The ALTER command allows you to make changes to the structure of a table without deleting and recreating it. Take a look at the following command: ALTER TABLE personal_info ADD salary money null This example adds a new attribute to the personal_info table -- an employee's salary. The "money" argument specifies that an employee's salary will be stored using a dollars and cents format. Finally, the "null" keyword tells the database that it's OK for this field to contain no value for any given employee. DROP: The final command of the Data Definition Language, DROP, allows us to remove entire database objects from our DBMS. For example, if we want to permanently remove the personal info table that we created, we'd use the following command: DROP TABLE personal_info Similarly, the command below would be used to remove the entire employees database: DROP DATABASE employees Use this command with care! Remember that the DROP command removes entire data structures from your database. If you want to remove individual records, use the DELETE command of the Data Manipulation Language.
  • 12. DML(Data Manipulation Language) It is used to retrieve, insert and modify database information. These commands will be used by all database users during the routine operation of the database. Commands: INSERT The INSERT command in SQL is used to add records to an existing table. Returning to the personal_info example from the previous section, let's imagine that our HR department needs to add a new employee to their database. They could use a command similar to the one shown below: INSERT INTO personal_info values('bart','simpson',12345,$45000) Note that there are four values specified for the record. These correspond to the table attributes in the order they were defined: first_name, last_name, employee_id, and salary.
  • 13. SELECT The SELECT command is the most commonly used command in SQL. It allows database users to retrieve the specific information they desire from an operational database. Let's take a look at a few examples, again using the personal_info table from our employees database. The command shown below retrieves all of the information contained within the personal_info table. Note that the asterisk is used as a wildcard in SQL. This literally means "Select everything from the personal_info table." SELECT * FROM personal_info Alternatively, users may want to limit the attributes that are retrieved from the database. For example, the Human Resources department may require a list of the last names of all employees in the company. The following SQL command would retrieve only that information: SELECT last_name FROM personal_info Finally, the WHERE clause can be used to limit the records that are retrieved to those that meet specified criteria. The CEO might be interested in reviewing the personnel records of all highly paid employees. The following command retrieves all of the data contained within personal_info for records that have a salary value greater than $50,000: SELECT * FROM personal_info WHERE salary > $50000
  • 14. UPDATE The UPDATE command can be used to modify information contained within a table, either in bulk or individually. Each year, our company gives all employees a 3% cost-of-living increase in their salary. The following SQL command could be used to quickly apply this to all of the employees stored in the database: UPDATE personal_info SET salary = salary * 1.03 On the other hand, our new employee Bart Simpson has demonstrated performance above and beyond the call of duty. Management wishes to recognize his stellar accomplishments with a $5,000 raise. The WHERE clause could be used to single out Bart for this raise: UPDATE personal_info SET salary = salary + $5000 WHERE employee_id = 12345 DELETE Finally, let's take a look at the DELETE command. You'll find that the syntax of this command is similar to that of the other DML commands. Unfortunately, our latest corporate earnings report didn't quite meet expectations and poor Bart has been laid off. The DELETE command with a WHERE clause can be used to remove his record from the personal_info table: DELETE FROM personal_info WHERE employee_id = 12345