Database Management System
Database Management System
SYSTEM
AND SQL
Presented by:-
Bandeep kaur
Stuti Chandra
Amresh
DATABASE MANAGEMENT SYSTEM
Database Management is the task of maintaining
database so that information is readily available. The
software required to perform the task of maintaining
database is called a DATABASE MANAGEMENT
SYSTEM(DBMS). DBMSs are designed to maintain
large volumes of data.
Management of data involves:-
Defining structures for data storage.
Providing mechanisms for data manipulation such
as adding, editing, and deleting data.
Providing data security against unauthorized access.
Objectives of DBMS
Provide an efficient and convenient environment that is
used to store data in, and retrieve data from a database.
STUDENT COURSE
GRADE
There are two types of entities:-
Dependent entity:- also know as weak entity.
Independent entity:- also know as regular entity.
COURSE
OFFERING
Relationship
Chen defined a relationship as “an association among
entities”. A relationship is depicted as a diamond with the
name of the relationship type.
STUDENT
SEMINA
R
There are three types of relationship:-
One – to – One
DEPARTMENT
1 HEADED 1 DEPARTMENT
BY HEAD
m REGISTE 1 MAJOR
STUDENT
R
Many – to – many
ENROLL
STUDENT m S FOR m COURSE
Attributes
An attribute is a property of a given entity.
An attribute instance is a particular property of an individual
entity instance.
ADDRESS NAME
STUDENT
ROLL NO REG_DT
Client/Server Architecture
Applications have three elements:-
The user interface or the presentation element.
The application logic or the business rule element.
The data storage or the data management element.
All the three elements- the user interface, the business rule,
and the management being put into one large executable
file, makes it difficult to modify the application.
The two-tier architecture model for application development
came as logical outcome from the problems of the single-tier
architecture.
In the client/server model, the functionality of the application
is split between two processes.
The client process handles the data input and the user
interface issues. The server process performs all validations
on the data.
The client will provide the user interface to get input data
from the user and pass the data to the server process. The
server process implements the application logic and validates
the input data based on the business rules. If the data is invalid
it passes an error message to the client; else the data is
updated in the database.
Client/Server Architecture
Features of MS-SQL Server
Fully web-enabled:- SQL Server provides various features to
facilitate easy and secure access to data via. Web. You can use
HTTP to send queries to the server.
Highly Scalable and Reliable:- In case the load on the SQL
server increases, it can use the scale up and scale out features to
meet the requirement. In scale up, the SQL server Enterprise edition
can use 32 processors and 64 GB of RAM to meet the increase in
load. SQL provides various backup strategies to improve reliability.
Fast Time-to-Market:- SQL Server provides features that reduce
the time taken to develop an application from its design to a
complete product. It provides management tools to manage the
server. It also provides tools to copy or move data from various
sources.
Benefits of two-tier model
Data Sharing:- Data is separated from the client from the
client side and is stored at a central location where all users
have access to the data.
Reduces duplication and maintenance:- Since data is
stored centrally, data maintenance is easy. There is no
duplication of data and therefore no inconsistency in the data
stored.
The data is stored and managed by the server, and the client
interacts with the user and transmits the user requests to the
server. Most RDBMSs adhere to the client/server architecture.
MS-SQL Server is a fast, reliable, secure, and scalable
RDBMS from Microsoft that adheres to the client/sever
architecture.
Structured Query Language
The language to access data objects from the SQL Server
is known as structured query language.
SQL has reduced the need for lengthy programming to
access data. SQL addresses data in sets of rows and
columns, rather than addressing individual components of
data one row or one attribute at a time.
An outstanding functionality of SQL is its support for
automatic navigation to the target data. This functionality
enables the user to specify what information is required
and not how to get it.
cont……
The query language takes care of retrieving, replacing,
adding and deleting data thus making the database readily
accessible to end users who have little or no knowledge of
programming.
The greatest advantage of using SQL is that while
developing applications, programmers are productive as
they can concentrate on the essential logic and data
requirements of their applications. They do not have to
spend time on the details of data representation.
Datatypes in SQL Server
SQL server can store various types of data like char, money,
int or datetime. A column has a datatype associated with it
that specifies the type of data the column can store.
Some of the datatypes are:-