Professional Documents
Culture Documents
1. B
2. I
3. E
4. D/B
5. S
6. C
Database Testing
FN- M
LN- C
Email- CM
Mb. No-12
Address-Pune
Submit
Database-
What is SQL-
SQL- used
- Database creation
- deletion
- Fetching row
- Modifying row
- 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
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
- 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
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
SELECT Syntax
Example
Output
Syntax
or
FROM tablename;
Example-
Or
SELECT FN, LN
FROM SignUP;
Output-
FN LN
Rahul Gandhi
Arvind Kejriwal
Anna Hajare
Sharad Pawar
Soniya Gandhi