Professional Documents
Culture Documents
Informatics Practices
Submitted by:
Name: Jaskaranpreet Singh
Class: XI (Science)
Roll no.: 13
Topic: My SQL
Submitted to:
Mr. Harsimran Singh
1. Data Base Management System
a) Database
A Data base is a collection of data containing information about one
particular enterprise. It maintains any information that may be necessary
to the decision-making processes involved in the management of that
organization.
c) Purpose of DBMS
In a typical file-processing system, permanent records are stored in
various files. This scheme has its limitations and disadvantages, such as
data redundancy, data inconsistency, unsharable data, unstandardized data,
insecure data, incorrect data etc. A DBMS is the answer to all these
problems as it provides centralized control of the data thereby minimizing
these problems in the database.
a) Components of a table
Byte: A byte is a group of eight bits and is used to store a
character
Data Item: A data item is the smallest unit of named data. It is
also referred to as a field.
Record: A record is a named collection of data items which
represents a complete unit of information.
Table: A table is a named collection of all occurrences of a given
type of logical record.
3. Introduction and Brief History of MySQL
MySQL is a freely available open source Relational Database Management
System (RDBMS) that uses Structured Query Language (SQL). In a
MySQL database, information is stored in Tables. A single MySQL
database can contain many tables at once and store thousands of individual
records. it is a fast, reliable and scalable alternative to many of the
commercial RDBMSs available today.
MySQL was created and is supported by MySQL AB, a company based in
Sweden which is a subsidiary of Sun Microsystems. The chief inventor of
MySQL was Michael Widenius (a.k.a. Monty). MySQL has been named
after his daughter My. The logo of MySQL, the dolphin, is named as
“Sakila”.
a) DDL Commands
The DDL Commands allow you to perform tasks like :
Create, alter and drop objects: CREATE commands are used
to create objects, ALTER commands are used to modify or
change the definition of already existing objects and DROP
commands are used to delete or remove objects.
e.g. CREATE TABLE, ALTER INDEX, DROP TABLE etc.
Grant and revoke privileges and roles: This section of DDL
Commands is used to grant or revoke permissions or privileges
to work upon objects. To grant privileges, GRANT command is
used. To revoke already granted privileges, REVOKE command
is used.
Maintenance commands: This section of DDL commands is
used to analyse information on a table with an aim of
maintaining it.
e.g. ANALYZE TABLE,CHECK TABLE,REPAIR TABLE etc.
b) DML Commands
Data manipulation means:
the retrieval of information stored in the database.
the insertion of new information into the database.
the deletion of information from the database.
the modification of data stored in the database.
The DML commands are used to manipulate data, e.g. to insert a tuple in a
table, to modify a tuple in a table, to delete a tuple in a table etc.
Examples of DML commands are INSERT INTO, UPDATE, DELETE,
SELECT etc.
c) TCL Commands
The TCL commands are used to manage and control transactions. These
commands manage changes made by DML commands.
e.g. COMMIT, ROLLBACK, SAVEPOINT, SET TRANSACTION etc.
7. Data Types