Introduction To DBMS and
SQL SERVER
DDL,DML,DCL
What is Database?
• A collection of information organized in such a way that
a computer program can quickly select desired pieces of data.
• You can think of a database as an electronic filing system
Where do we use Database?
Front End: done in PHP / .Net / JSP or Stores data at the Back end
any server side scripting languages database in MYSQL/SQL Server /
Oracle or any other DBMS
Database management system (DBMS)
“Simply DBMS helps you to create and manage databases.”
Database management system (DBMS)
– DBMS is a computer software providing the interface
between users and a database (or databases)
– It is a software system designed to allow the definition,
creation, querying, update, and administration of
databases
– Different types of DBMS are RDBMS, Object Oriented
DBMS, Network DBMS, Hierarchical DBMS
– Examples :Oracle, Mysql, PostgreSQl, SQL server, Firebird
etc
“ The RDBMS follows
Entity- Relationship model”
Relationship (ER) Data Model ?
In ER model all the data will be viewed as Entities, Attributes and
different relations that can be defined between entities
Entities
– Is an object in the real world Ex. Employees, Places
Attributes
– An entity is described in the database using a set of attributes
– Ex. Employee_Name, Employee_Age, Gender
Relationships
– A relationship is an association among two or more entities
• So a relation means simply a two dimensional table
• Entities will be data within a table
• And attributes will be the columns of that table