Professional Documents
Culture Documents
Data:: 3. What Is DBMS (Data Base Management System)
Data:: 3. What Is DBMS (Data Base Management System)
Data:: 3. What Is DBMS (Data Base Management System)
Data is a collection of a distinct small unit of information. It can be used in a variety of forms
like text, numbers, media, bytes, etc. it can be stored in pieces of paper or electronic
memory, etc.
Word 'Data' is originated from the word 'datum' that means 'single piece of information.' It
is plural of the word datum.
In computing, Data is information that can be translated into a form for efficient movement
and processing. Data is interchangeable.
Database:
2. What is Database?
A database is an organized collection of data, so that it can be easily accessed and managed.
You can organize data into tables, rows, columns, and index it to make it easier to find
relevant information.
Database handlers create a database in such a way that only one set of software program
provides access of data to all the users.
There are many dynamic websites on the World Wide Web nowadays which are handled
through databases. For example, a model that checks the availability of rooms in a hotel. It is
an example of a dynamic website that uses a database.
DBMS :
3. What is DBMS (Data Base Management System)
Database management System is software which is used to store and retrieve the database.
For example, Oracle, MySQL, etc.; these are some popular DBMS tools.
DBMS provides the interface to perform the various operations like creation, deletion,
modification, etc.
DBMS allows the user to create their databases as per their requirement.
DBMS accepts the request from the application and provides specific data through the
operating system.
DBMS contains the group of programs which acts according to the user instruction.
Advantage of DBMS
Controls redundancy
It stores all the data in a single database file, so it can control data redundancy.
Data sharing
Backup
It provides Backup and recovery subsystem. This recovery system creates automatic data
from system failure and restores data if required.
Disadvantage of DBMS
Size
Cost
DBMS requires a high-speed data processor and larger memory to run DBMS software, so it
is costly.
Complexity
RDBMS:
4.What is RDBMS (Relational Database Management System)
All modern database management systems like SQL, MS SQL Server, IBM DB2, ORACLE, My-
SQL and Microsoft Access are based on RDBMS.
Relational database is most commonly used database. It contains number of tables and each
table has its own primary key.
Due to a collection of organized set of tables, data can be accessed easily in RDBMS.
During 1970 to 1972, E.F. Codd published a paper to propose the use of relational database
model.
Compoents:
Table
Record/ Tuple
Row/Record/tuple:
5.What is SQL
SQL is a database language, it is used for database creation, deletion, fetching rows, and
modifying rows, etc.
Sql commands:
SQL commands are instructions. It is used to communicate with the database. It is also used
to perform specific tasks, functions, and queries of data.
SQL can perform various tasks like create a table, add data to tables, drop the table, modify
the table, set permission for users.
Data types are used to represent the nature of the data that can be stored in the database
table. For example, in a particular column of a table, if we want to store a string type of data
then we will have to declare a string data type of this column.
Data types mainly classified into three categories for every database.
SQL JOIN
A JOIN clause is used to combine rows from two or more tables, based on a related column
between them.
FROM Orders
(INNER) JOIN: Returns records that have matching values in both tables
LEFT (OUTER) JOIN: Returns all records from the left table, and the matched records from
the right table
RIGHT (OUTER) JOIN: Returns all records from the right table, and the matched records from
the left table
FULL (OUTER) JOIN: Returns all records when there is a match in either left or right table
The INNER JOIN keyword selects records that have matching values in both tables.
The LEFT JOIN keyword returns all records from the left table (table1), and the matching
records from the right table (table2). The result is 0 records from the right side, if there is no
match.
SELECT column_name(s)
FROM table1
ON table1.column_name = table2.column_name;
SELECT column_name(s)
FROM table1
ON table1.column_name = table2.column_name;
The FULL OUTER JOIN keyword returns all records when there is a match in left (table1) or
right (table2) table records.
SELECT column_name(s)
FROM table1