Database Management Short Notes
Database Management Short Notes
Database Management Short Notes
Database Servers – Database servers are dedicated computers that hold the
actual databases and run only the DBMS and related software.
RDBMS:- A relational database management system (RDBMS) is a database
management system that is based on the relational model. In the relational model
of a database, all data is represented in terms of tuples (rows), grouped into
relations (tables). A database organized in terms the relational model is a
relational database.
Database Concepts:- Database contains objects that are used for storing and
managing information.
1. Field:- Each question that we ask about our item is a Field.
ALPHANUMERIC TYPES:-
BINARY TYPES:-
Binary types are used for storing data in binary formats. It can be used for storing
photos, music files or (in general file of any format) etc.
1. LongVarBinary (Image)
2. Binary (Binary (fix)
3. VarBinary (Binary)
DATE TIME:-
Date time data types are used for describing date and time values for the field
used in the table of a database. It can be used for storing information such as date
of birth, date of admission etc.
The list of different data types available in Date Time type are :-
1. Date (Stores month, day and year information)
2. Time (Store hour , minute and second information)
3. Timestamp (Stores date and time information)
PRIMARY KEY:- A primary key is a unique value that identifies a row in a table.
FOREIGN KEY:- The foreign key identifies a column or set of columns in one
(referencing) table that refers to a column or set of columns in another
(referenced) table.
There are two types of languages:-
DDL (Data Definition Language)
1. DML (Data Manipulation Language)
DATA DEFINITION / DESCRIPTION LANGUAGE:- It is a standard for commands that
define the different structures in a database. DDL statements create,modify and
remove database objects such as tables, indexes and users.
Common DDL Statements are:-
1. Create :- Used to create database objects.
2. Alter :- Used to modify database objects.
3. Drop :- Used to delete database objects.
DATA MANIPULATION LANGUAGE:- It is a standard for commands that enables
users to access and manipulate data in a database.
Common DML Statements are:-
1. SELECT :- Used for retrieval of information from the database.
2. INSERT :- Used for insertion of new information into the database.
3. DELETE :- Used for deletion of information in the database.
4. UPDATE :- Used for modification of information in the database.
CREATE : To create Table
CREATE TABLE Employee_Info
DROP : To Delete
DROP DATABASE Employee (complete information present in the
SELECT : This statement is used to select data from a database and the data
returned is stored in a result table, called the resultset.
SELECT EmployeeID, EmployeeName FROM Employee_Info;