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
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
OUTPUT:
VIEWS:
FUNCTION:
INDEX:
TRIGGER:
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
OUTPUT:
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:
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:
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:
DAY 7:
SQL COMMANDS – SELECT *FROM
OBJECTIVE:
The aim of the task is to understand the working of SQL
command – SELECT *FROM
OUTPUT:
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.
3.
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.
DAY 10: SQL COMMANDS – GROUP BY
OUTPUT:
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
2)ADDING NEW COLUMNS
3)DROPPING COLUMN
4)MODIFYING COLUMN
5)RENAMING TABLE
6)TRUNCATING TABLE
FI task.pdf

FI task.pdf

  • 1.
    MOBILE AND WEBAPP 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: CREATINGA 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
  • 3.
  • 4.
  • 5.
    DAY 2: CREATE ADATABASE 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
  • 6.
  • 7.
    DAY 3: OBJECTIVE: To createa 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:
  • 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:
  • 13.
    DAY 6: SQL commands-DISTINCT DESCRIPTION: Selectfirst name from table “users” Select first name ,second name ,birth date from users SYNTAX: SELECT DISTINCT column_name from table_name OUTPUT:
  • 15.
    DAY 7: SQL COMMANDS– SELECT *FROM OBJECTIVE: The aim of the task is to understand the working of SQL command – SELECT *FROM
  • 16.
  • 18.
    DAY 8: SQLCOMMANDS – 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.
  • 19.
  • 20.
    DAY 9: SQLCOMMANDS – ORDER BY OUTPUT: 1. SELECT *FROM User_Sales ORDER BY Last_Name DESC; SELECT *FROM User_Sales ORDER BY Last_Name, First_Name; 2.
  • 21.
    DAY 10: SQLCOMMANDS – GROUP BY OUTPUT:
  • 24.
    MINI TEST PROJECT1 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
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.