Skip to main content

Basics of Database management system

Basics of the Database management system

I this article we will learn about:

 ■ Purpose of Database Systems

 ■ View of Data

 ■ Data Models 

■ Data Definition Language

 ■ Data Manipulation Language

 ■ Transaction Management

 ■ Storage Management

 ■ Database Administrator 

■ Database Users 


Database Management System:(DBMS)

■ Collection of interrelated data 

■ Set of programs to access the data

■ DBMS contains information about a particular enterprise 

■ DBMS provides an environment that is both convenient and efficient to use. 

■ Database Applications: 

★ Banking: all transactions 

★ Airlines: reservations, schedules 

★ Universities: registration, grades 

★ Sales: customers, products, purchases 

★ Manufacturing: production, inventory, orders, supply chain 

★ Human resources: employee records, salaries, tax deductions 

■ Databases touch all aspects of our life


Reason for Database System 


■ In the good 'ole days, information base applications were based on top of 

record frameworks 

■ Drawbacks of utilizing record frameworks to store information: 

★ Data repetition and irregularity 

✔ Multiple record designs, duplication of data in various documents 

★ Difficulty in getting to information 

✔ Need to work on another program to complete each new undertaking 

★ Data seclusion — various documents and configurations 

★ Integrity issues 

✔ Integrity imperatives (for example account balance > 0) become part 

of program code 

✔ Hard to add new limitations or change existing one 

Levels of Abstraction Levels of Abstraction 

■ Physical level depicts how a record (e.g., client) is put away. 

■ Logical level: depicts information put away in the data set, and the 

connections among the information. 

type client = record 

name: string; 

road: string; 

city: number; 

end; 

■ View level: application programs conceal subtleties of information types. 

Perspectives can likewise shroud data (e.g., pay) for security 

purposes.

Instances and Schemas 


■ Similar to types and factors in programming dialects 

■ Schema – the intelligent design of the information base 

★ e.g., the data set comprises data about a bunch of clients and 

accounts and the connection between them) 

★ Analogous to type data of a variable in a program 

★ Physical pattern: data set plan at the actual level 

★ Logical pattern: data set plan at the legitimate level 

■ Instance – the real substance of the information base at a specific point on the schedule 

★ Analogous to the worth of a variable 

■ Physical Data Independence – the capacity to change the actual pattern 

without changing the intelligent pattern 

★ Applications rely upon the sensible outline 

★ by and large, the interfaces between the different levels and segments ought to 

be obvious so that adjustments of certain parts don't genuinely impact others. 

Information Models Data Models 


■ An assortment of devices for depicting 

★ information 

★ information connections 

★ information semantics 

★ information imperatives 

■ Entity-Relationship model 

■ Relational model 

■ Other models: 

★ object-situated model 

★ semi-organized information models 

★ Older models: network model and progressive model 

Substance Relationship Model Entity-Relationship Model 

Illustration of outline in the substance relationship model 


Information Definition Language (DDL) Data Definition Language (DDL) 


■ Specification documentation for characterizing the data set composition 

★ E.g. 

make table record ( 

account-number char(10), 

balance whole number) 

■ DDL compiler creates a bunch of tables put away in an information 

word reference 

■ Data word reference contains metadata (i.e., information about information) 

★ data set composition 

★ Data stockpiling and definition language 

✔ language in which the capacity design and access techniques 

utilized by the information base framework are determined 

✔ Usually an augmentation of the information definition language 

SQL 


■ SQL: broadly utilized non-procedural language 

★ E.g. discover the name of the client with client id 192-83-7465 

select customer.customer-name 

from client 

where customer.customer-id = '192-83-7465' 

★ E.g. discover the equilibriums of all records held by the client with 

client id 192-83-7465 

select account.balance 

from the contributor, account 

where depositor.customer-id = '192-83-7465' and 

depositor.account-number = account.account-number 

■ Application programs by and large access information bases through one of 

★ Language augmentations to permit inserted SQL 

★ Application program interface (for example ODBC/JDBC) which permit SQL 

questions to be shipped off a data set 

Administrator Database Administrator 


■ Coordinates every one of the exercises of the information base framework; the 

information base manager has a decent comprehension of the 

venture's data assets and requirements. 

■ Database director's obligations include: 

★ Schema definition 

★ Storage design and access strategy definition 

★ Schema and actual association change 

★ Granting client position to get to the data set 

★ Specifying uprightness imperatives 

★ Acting as contact with clients 

★ Monitoring execution and reacting to changes in 

necessities 

Capacity Management Storage Management 


■ Storage supervisor is a program module that gives the 

the interface between the low-level information put away in the data set and 

the application projects and inquiries submitted to the framework. 

■ The capacity supervisor is mindful of the accompanying undertakings: 

★ communication with the document director 

★ effective putting away, recovering, and refreshing of information

Comments

Popular posts from this blog

Computer Network Architecture

Computer Network Architecture  PC Network Architecture is characterized as the physical and sensible plan of the product, equipment, conventions, and media of the transmission of information. Essentially we can say that how PCs are coordinated and how assignments are apportioned to the PC.  Types of network architectures are used: Peer-To-Peer network Client/Server network Peer-To-Peer network: A Peer-To-Peer network is an organization wherein every one of the PCs is connected along with equivalent advantages and obligations regarding preparing the information.  The Peer-To-Peer network is helpful for little conditions, generally up to 10 PCs.  The distributed organization has no devoted workers.  Extraordinary consents are appointed to every PC for sharing the assets, yet this can prompt an issue if the PC with the asset is down.  Computer Network Architecture  Computer Network Architecture is characterized as the physical and sensible plan of the pro...

Basics of Automata Theory

 Basics of Automata Theory  What is Automata Theory?  Introduction Automata Theory is an energizing, hypothetical part of software engineering. It set up its foundations during the twentieth Century, as mathematicians started creating - both hypothetically and in a real sense - machines that imitated certain highlights of man, finishing estimations all the more rapidly and dependably. The word machine itself, firmly identified with "mechanization", signifies programmed measures doing the creation of explicit cycles. Essentially expressed, the automata hypothesis manages the rationale of calculation concerning straightforward machines, alluded to as automata. Through automata, PC researchers can see how machines figure works and tackle issues and all the more significantly, how it affects a capacity to be characterized as calculable or for an inquiry to be depicted as decidable.  Robots are unique models of machines that perform calculations on a contribution by trave...

Highlights/Features Of Computer Network

 Highlights/Features Of Computer Network Highlights Of Computer organization  In this article guide, we will talk about the highlights of a Computer Network  A rundown Of Computer network highlights is given underneath.  Execution  communication speed  Document sharing  Back up and Rollback is simple  Programming and Hardware sharing  Security  Versatility  Unwavering quality  Execution:  The performance of a Computer network is estimated as far as reaction time. The reaction season of sending and getting information from one hub (PC in a PC network regularly alludes to a hub) to another ought to be negligible.  Information Sharing: One of the motivations behind why we utilize a PC network is to divide the information among various frameworks associated with one another through transmission media.  Reinforcement:  A PC network should have a focal worker that keeps the reinforcement of all the information tha...