You are on page 1of 6

Functional Testing

1. B
2. I
3. E
4. D/B
5. S
6. C

Database Testing

Sign Up form – Check on UI (Front End)

FN- M

LN- C

Email- CM

Mb. No-12

Address-Pune

Submit

“Sign up is successful” – we can check for success message

Database-

Customer Sign Up Table

- Validate correctness & completeness

Database/ Backend Testing

Database- storage location – collection of related data

1. Structured data- Facebook, filpkart, amazon, MSEB, MPSC, IRCTC


2. Unstructured data- Random data- social media post- Data cannot be stored in DB

Database management system (DBMS)

- To perform any operations on the data we need the DBMS


- Different database- Oracal, sql server, My Sql, MangoDB
When we deal with structured data we use RDBMS

What is SQL-

SQL – Structured Query Language

It is designed for managing data in a RDBMS

Pronounced- SQL or See-Qwell

SQL- is a database language / not the database

SQL- used

- Database creation
- deletion
- Fetching row
- Modifying row

Why SQL is required

- To create database/table
- To insert record
- To update record
- To delete records
- To retrieve data

SQL Syntax

SQL follows some unique set of rules & regulation called syntax

SQL- is not case sensitive. Generally SQL keywords are written in Uppercase

SQL Statement

SQL statement are stared with any of the SQL command/keyword

Iike- SELECT, INSERT, UPDATE, DELETE, ALTER, DROP


Statement ends with a semicolon (;)

Ex. SELECT “Column name” FROM “table name”;

Why use semicolon?

Used to separate SQL statement

SQL Commands / Keyword

Select- extract data from the database

Update- update data in database

Delete-

Create table-

Alter table-

Drop table-

Inert in to –

SQL Commands- are instruction. It is used to communicate with the database also used to
perform specific task

Types of SQL commands

Five types of SQL commands

1. DDL- data definition language


2. DML- data manipulation language
3. DCL- data control language
4. TCL – transaction control language
5. DQL- data query language

DDL- data definition language

- Changes the structure of the table like creating a table, delete a table, altering table etc….
- All DDL command- auto committed – means – it permanently save all the changes in the
database
- DDL commands
1. Create
2. Alter
3. Drop
4. Truncate

DML- data manipulation language

- DML commands used to modify the database


- DML- not auto committed- means it can’t permanently save all the changes in the
database
- They can be rollback
- DML – commands
1. Insert
2. Update
3. Delete

Data query language

- DQL is used to fetch the data from the database/ table


- DQL command
1. Select

Database- collection of data- storage – no of table – row (records) & column (field)

Ex. Sign up, login credentials, orders, employee info, student’s registration

Table Name- Sign Up – front end- UI- ID,FN,LN,MObNo,EmailID, City- submit- successful

ID FN LN MobNo EmailId City

1 Rahul Gandhi 1111 1@gmail.com Pune

2 Arvind Kejriwal 2222 2@gmail.com Mumbai

3 Anna Hajare 3333 3@gmail.com Pune

4 Sharad Pawar 4444 4@gmail.com Baramati

5 Soniya Gandhi 5555 5@gmail.com Pune


1. SQL SELECT statement
- Fetch the data from the database
- Retrieve the data from the database
- Following sql statement selects or fetch the record in the sign up table

SELECT Syntax

SELECT * FROM tablename;

Example

SELECT * FROM SIgnUP;

Output

We get the all the records from the tables

ID FN LN MobNo EmailId City

1 Rahul Gandhi 1111 1@gmail.com Pune

2 Arvind Kejriwal 2222 2@gmail.com Mumbai

3 Anna Hajare 3333 3@gmail.com Pune

4 Sharad Pawar 4444 4@gmail.com Baramati

5 Soniya Gandhi 5555 5@gmail.com Pune

* - rows & column select

Select particular column in the table

For EX. select FN & LN column

Syntax

SELECT column1, column2….N FROM tablename;

or

SELECT column1, column2….N

FROM tablename;
Example-

SELECT FN, LN FROM SignUP;

Or

SELECT FN, LN

FROM SignUP;

Output-

FN LN

Rahul Gandhi

Arvind Kejriwal

Anna Hajare

Sharad Pawar

Soniya Gandhi

You might also like