Professional Documents
Culture Documents
Shivani Nanda
Database Concepts
Database
Concepts
1
Database Concepts
Data, Information, Database
Centurion University of Technology and Management
Shivani Nanda 2
Database Concepts
DBMS
Centurion University of Technology and Management
Shivani Nanda 3
Database Concepts
Relational Database
Centurion University of Technology and Management
Shivani Nanda 4
Database Concepts
RDBMS
Centurion University of Technology and Management
Shivani Nanda 5
Database Concepts
Structured Query Language
Centurion University of Technology and Management
Shivani Nanda 6
Database Concepts
RDBMS Basics
Centurion University of Technology and Management
Shivani Nanda 7
Database Concepts
RDBMS Basics(contd..)
Centurion University of Technology and Management
Shivani Nanda 9
Database Concepts
SQL Language Statements
Centurion University of Technology and Management
Shivani Nanda 11
Database Concepts
DDL Commands
Centurion University of Technology and Management
Shivani Nanda 12
Database Concepts
Centurion University of Technology and Management
Shivani Nanda 15
Database Concepts
Centurion University of Technology and Management
Shivani Nanda 16
Database Concepts
Terminal Basics
Centurion University of Technology and Management
>mysql u root -p
Enter password : CUTM
//syntax to create a database
mysql> create database student-name;
Query OK, 1 row affected
// to see the created database in the database list
mysql> show databases;
mysql> use student-name; // to change database
Database changed
Shivani Nanda 17
Database Concepts
Create table syntax
Centurion University of Technology and Management
Shivani Nanda 18
Database Concepts
Select Syntax
Centurion University of Technology and Management
Shivani Nanda 19
Database Concepts
Insert Syntax
Centurion University of Technology and Management
Shivani Nanda 22
Database Concepts
Where Clause Example
Centurion University of Technology and Management
Shivani Nanda 23
Database Concepts
Update Clause
Centurion University of Technology and Management
Shivani Nanda 24
Database Concepts
Update Clause
Centurion University of Technology and Management
Shivani Nanda 25
Database Concepts
Delete Clause
Centurion University of Technology and Management
Shivani Nanda 26
Centurion University of Technology and Management
Shivani Nanda
Database Concepts
Delete Clause
27
Database Concepts
Alter Clause
Centurion University of Technology and Management
Shivani Nanda 28
Database Concepts
Alter Clause
Centurion University of Technology and Management
Shivani Nanda 33
Database Concepts
Count( )
Centurion University of Technology and Management
Shivani Nanda 34
Database Concepts
Count(distinct)
Centurion University of Technology and Management
Shivani Nanda 35
Database Concepts
First( ), Last( )
Centurion University of Technology and Management
Shivani Nanda 36
Centurion University of Technology and Management
Shivani Nanda
Database Concepts
37
Database Concepts
Max( ), Min( )
Centurion University of Technology and Management
Shivani Nanda 38
Centurion University of Technology and Management
Shivani Nanda
Database Concepts
39
Database Concepts
Sum( )
Centurion University of Technology and Management
Shivani Nanda 40
Database Concepts
AND / OR Operators
Centurion University of Technology and Management
Shivani Nanda 44
Database Concepts
Group By
Centurion University of Technology and Management
Shivani Nanda 45
Centurion University of Technology and Management
Shivani Nanda
Database Concepts
Order By
46
Centurion University of Technology and Management
Shivani Nanda
Database Concepts
47
Centurion University of Technology and Management
Shivani Nanda
Database Concepts
48
Centurion University of Technology and Management
Shivani Nanda
Database Concepts
49
Database Concepts
Order By
Centurion University of Technology and Management
Shivani Nanda
Database Concepts
51