0% found this document useful (0 votes)
100 views

Mysql SQL Revision Tour

The document discusses MySQL, a popular open-source relational database management system (RDBMS). Key topics covered include: - MySQL allows users to organize data into tables with rows and columns and uses Structured Query Language (SQL) to manage the database. - The MySQL server listens for client requests to access and manipulate database contents using SQL statements like INSERT, UPDATE, DELETE, and queries. - SQL statements are classified into data definition language, data manipulation language, and transaction control language based on their usage.

Uploaded by

anujesus
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
100 views

Mysql SQL Revision Tour

The document discusses MySQL, a popular open-source relational database management system (RDBMS). Key topics covered include: - MySQL allows users to organize data into tables with rows and columns and uses Structured Query Language (SQL) to manage the database. - The MySQL server listens for client requests to access and manipulate database contents using SQL statements like INSERT, UPDATE, DELETE, and queries. - SQL statements are classified into data definition language, data manipulation language, and transaction control language based on their usage.

Uploaded by

anujesus
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 21

MYSQL SQL

REVISION TOUR
INTROUCTION
Database

 A database is an organised collection of data.

 Software used to manage databases is called Data

Base Management System (DBMS).


Relational Database

 A database in which the data is stored in the form of


relations (also called tables) is called a Relational
Database.

 In other words a Relational Database is a collection


of one or more tables.
RDBMS 

 A DBMS used to manage Relational Databases is


called an RDBMS (Relational Data Base Management
System).

 Some popular RDBMS software available are: Oracle,


MySQL, Sybase, Ingress
Benefits of using a DBMS are

  a. Redundancy can be controlled

  b. Inconsistence can be avoided

  c. Data can be shared

  d. Security restrictions can be applied.


Relation/Table 

 A table refers to a two dimensional representation of


data arranged in columns (also called fields or
attributes) and rows (also called records or tuples). E
Domain

 It is a pool of values from which the actual values

appearing in a given column are drawn


Tuples

 A row of a relation is generally referred to as a tuple.


Attribute

 A Column of a relation is generally referred to as an

attribute.
Degree

 Degree of a table is the number of columns in the


table.
Cardinality

 Cardinality of a table is the number of rows in a


table.
View

 It is a virtual table that does not really exit in its own

right but it instead derived from one or more

underlying base tables


Key 

 A column or a combination of columns which can be

used to identify one or more rows (tuples) in a table is

called a key of the table.


Primary Key

 The group of one or more columns used to uniquely

identify each row of a relation is called its Primary

Key.
Candidate Key

 A column or a group of columns which can be used

as the primary key of a relation is called a candidate

key because it is one of the candidates available to be

the primary key of the relation


Alternate Key 

 A candidate key of a table which is not made its

primary key is called its Alternate Key. H


Foreign Key

 A non-key attribute, whose values are derived from

the primary key of some other table is known as

foreign key.
MySQL 

 It is an Open Source RDBMS Software.

 It is available free of cost.


MySQL Database System

 The Server (My SQL Server) : listens for client request coming in over
the network and accesses database contents according to those request
and provides that to the clients.

 Client : client are programs that connect to the Database Server and
issue queries in a pre-specified format.
MySQL and SQL

 My SQL: In order to access data within the MySQL


database, all Programs and users must use,
Structured Query Languages(SQL).

 SQL: The Structured Query Language(SQL) is a


Language that enables you to create and operate on
relational database.
Classification of SQL Statements
 DDL (Data Definition Language): This is a category of SQL commands. All the
commands which are used to create, destroy, or restructure databases and
tables come under this category. Examples of DDL commands are - CREATE,
DROP, ALTER.

 DML (Data Manipulation Language): This is a category of SQL commands. All


the commands which are used to manipulate data within tables come under
this category. Examples of DML commands are - INSERT, UPDATE, DELETE.

 TCL (Transaction Control Language): This is a category of SQL commands. All


the commands which are used to control the access to databases and tables fall
under this category. Examples of DCL commands are - GRANT, REVOKE.

You might also like