1. MOBILE AND WEB APP FOR
SOFTWARE APPLICATION SPECIAL
LABORATORY
S3 FACULTY INITIATIVE - 2022
SLBC2103 - SQL FOR BLOCKCHAIN SECURITY
NAME:DHAYAL K
ROLL NO: 7376211EC132
DEPARTMENT: ECE
2. DAY 1: CREATING A DATABASE AND ITS OBJECTS
OBJECTIVE:
To create a database and it’s the subsequent objects like
1. table
2. view
3. index
4. store procedure
5. function
6. triggers
ALGORITHM:
1. Create a database and add a table to it
2. Insert values into the table
3. Create a view on the table
4. Create an index on a particular column of a table
5. Create store procedure on a particular stage
6. Create a certain function
7. Create a trigger for an instance
5. DAY 2:
CREATE A DATABASE AND TABLE FOR
EMPLOYEES
OBJECTIVE:
a) A hospital uses a database to maintain data about its employees.
Create a database file named EMPLOYEE.
b) Create a table called EMPLOYEE1with the following fields and
hence enter data into it - EMP NO – NAME – DATE OF BIRTH –
DEPARTMENT – BASIC PAY
ALGORITHM:
1. Create a database and name
it as EMPLOYEE
2. Create a table called
EMPLOYEE1 and enter
data’s
7. DAY 3:
OBJECTIVE:
To create a database and it’s the subsequent objects like
1. NAME
2. ROLL NUM
3. DEPT
4. COLLEGE
ALGORITHM:
1.Create a database and name it as STUDENT
2.Create a table called STUDENT1 and enter
data’s
OUTPUT:
8.
9. DAY 5:
SQL Commands -SELECT Command
OBJECTIVE:
The aim of this task is to understand the working of SQL commands SELECT
ALGORITHM:
1. Create a database named day5
2.Create a table called users
OUTPUT:
10.
11.
12.
13. DAY 6:
SQL commands-DISTINCT
DESCRIPTION:
Select first name from table “users”
Select first name ,second name ,birth date from users
SYNTAX:
SELECT DISTINCT column_name from table_name
OUTPUT:
14.
15. DAY 7:
SQL COMMANDS – SELECT *FROM
OBJECTIVE:
The aim of the task is to understand the working of SQL
command – SELECT *FROM
18. DAY 8: SQL COMMANDS – SELECT *FROM
OUTPUT:
1. SELECT*FROM User_Sales WHERE Total_Sales IS BETWEEN 200
AND 300;
SELECT*FROM User_Sales WHERE Total_Sales BETWEEN 200 AND
300;
2.
20. DAY 9: SQL COMMANDS – ORDER BY
OUTPUT:
1. SELECT *FROM User_Sales ORDER BY Last_Name DESC;
SELECT *FROM User_Sales ORDER BY Last_Name, First_Name;
2.
24. MINI TEST PROJECT 1 AND ASSESSMENT
OBJECTIVE:
To implement DDL commands
DESCRIPTION:
Create a DDL and perform creation of table, alter, modify, and drop the
column
OUTPUT:
1)CREATING TABLE