You are on page 1of 25

SQL Tutorial

SQL

Copyright IntelliPaat. All rights reserved


Agenda
1 What Is a Database?

Types of Database
2
Architecture

3 Introduction to SQL

4 Tables in SQL

Copyright IntelliPaat. All rights reserved


What Is a Database?

An organized collection of data stored in an electronic format

Access Data

Manipulate Data

Data Database

Update Data

Copyright IntelliPaat. All rights reserved


Database Management System

DBMS is a system software for creating and managing databases.

Database DBMS

Copyright IntelliPaat. All rights reserved


Types of Database Architecture

File Server Client Server

Copyright IntelliPaat. All rights reserved


File Server Architecture

Files Local System

Copyright IntelliPaat. All rights reserved


File Server Architecture

Changes in Do Not
Original File Copy the Original Reflect in
File the Copy

Copyright IntelliPaat. All rights reserved


File Server Architecture

Server/Local File System

Copyright IntelliPaat. All rights reserved


Client Server Architecture

Copyright IntelliPaat. All rights reserved


Introduction to SQL

SQL stands for Structured Query Language which is a standard language for accessing and
manipulating databases.

Copyright IntelliPaat. All rights reserved


Categories of SQL Commands

Data Data
Data Query Data Control
Definition Manipulation
Language Language
Language Language

Create Table Insert


Grant
Select Alter Table Update
Revoke
Drop Table Delete

Copyright IntelliPaat. All rights reserved


Tables in SQL

A table is a database object which comprises rows and columns.

Copyright IntelliPaat. All rights reserved


Fields and Records

Record

Field

Copyright IntelliPaat. All rights reserved


Fields

A field provides specific information about the data in a table.

Copyright IntelliPaat. All rights reserved


Records

Each individual entry in a table is called a record.

Copyright IntelliPaat. All rights reserved


Quiz

Copyright IntelliPaat. All rights reserved


Quiz

What does SQL stand for?

A Strong Question Language

B Structured Question Language

C Structured Query Language

D None of these

Copyright IntelliPaat. All rights reserved


Solution

What does SQL stand for?

A Strong Question Language

B Structured Question Language

C Structured Query Language

D None of these

Copyright IntelliPaat. All rights reserved


Quiz

Which of these are different categories of SQL commands?

A Data Query Language

B Data Definition Language

C Data Manipulation Language

D All of these

Copyright IntelliPaat. All rights reserved


Solution

Which of these are different categories of SQL commands?

A Data Query Language

B Data Definition Language

C Data Manipulation Language

D All of these

Copyright IntelliPaat. All rights reserved


Quiz

Grant & Revoke come under which category of SQL commands?

A Data Query Language

B Data Definition Language

C Data Manipulation Language

D Data Control Language

Copyright IntelliPaat. All rights reserved


Solution

Grant & Revoke come under which category of SQL commands?

A Data Query Language

B Data Definition Language

C Data Manipulation Language

D Data Control Language

Copyright IntelliPaat. All rights reserved


Quiz

Which of these is true about Records?

A One individual column in a table is known as a record

B One individual row in a table is known as a record

C A record should have data of only one type

D Each cell in a record can be of different data type

Copyright IntelliPaat. All rights reserved


Solution

Which of these is true about Records?

A One individual column in a table is known as a record

B One individual row in a table is known as a record

C A record should have data of only one type

D Each cell in a record can be of different data type

Copyright IntelliPaat. All rights reserved


Thank You

Copyright IntelliPaat. All rights reserved

You might also like