0% found this document useful (0 votes)
12 views3 pages

Theory

The document provides an overview of databases, defining them as collections of data managed by Database Management Systems (DBMS). It distinguishes between relational and non-relational databases, highlighting SQL as the programming language used for CRUD operations in relational databases. Additionally, it includes an example of a STUDENT table and basic SQL commands for creating and deleting databases.

Uploaded by

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

Theory

The document provides an overview of databases, defining them as collections of data managed by Database Management Systems (DBMS). It distinguishes between relational and non-relational databases, highlighting SQL as the programming language used for CRUD operations in relational databases. Additionally, it includes an example of a STUDENT table and basic SQL commands for creating and deleting databases.

Uploaded by

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

SQL ( Structured Query Language )

DATABASE
 Database is Collection of data in a format that can easily
accessed ( Digital ) .
 A software application used to manage our DB is called
DBMS ( Database Management System ) .

Types of Databases

Relational Non – Relational (NoSQL)

Data stored in tables Data not stored in tables

MySQL , SQL Server , ORACLE MongoDB

** We use SQL to work with relational DBMS .

SQL
SQL is a programming language used to interact with relational databases .

 It is used to perform CRUD operations:

Create
Read
Update
Delete
SEQUEL SQL

Structured Structured

English Query

Query Language

Language

SEQUEL formed by IBM company .

What is Table

STUDENT Table :

Roll No. Name Class D.O.B Gender City Marks


1 Rahul X 1995-04-21 Male Dehradun 551
2 Amit Xii 1993-06-30 Male Haridwar 500
3 Mahima Xi 1994-03-7 Female Rorkee 450
4 Rudra Xii 1995-04-8 Male Delhi 390
5 Sachin Xii 1994-09-9 Male Mumbai 299
6 Prateek Xi 1995-05-10 Male Agra 298
7 Ashmit X 1996-06-11 Male Rohtak 350
8 Nandini X 1994-07-24 Female Panipat 459
9 Roshan Xii 1995-09-27 Male Haldwani 490
CREATING OUR FIRST DATABASE
Our first SQL Query
CREATE DATABASE db_name; (to create database)

DROP DATABASE db_name; (to delete database)

You might also like