ON-JOB TRAINING REPORT
On
DATABASE SYSTEM ASSITANT
(21110208)
Submitted by
Himanshu H. Jikadara
(2308411020022)
In partial fulfillment for the award of the degree
of
BACHELOR OF VOCATION
in
SOFTWARE DEVELOPMENT
Semester I
R. N. G. Patel Institute of Technology-RNGPIT
Isroli - Bardoli
Gujarat Technological University
Ahmedabad
December
2023
R. N. G. Patel Institute of Technology-RNGPIT
Department of B.Voc (Software Development)
A.Y. 2023-24
CERTIFICATE
Date: / /202
This is to certify that the “On-Job Training (Elective): DATABASE
SYSTEM ASSITANT (21110208)” has been done by Himanshu H.
Jikadara (230841102022) in partial fulfillment of the degree of Bachelor
of Vocation in Software Development (Semester I) of Gujarat Technological
University,Ahmedabad during the academic year 2023-24.
Date: / /
Place: RNGPIT, Bardoli
Internal Examiner External Examiner
Mr. VIKAS GOKHALE
(Skill Knowledge Provider)
Dr. V.C . JOSHI Dr. L. B. Chaudhari
(Head of Department) (Principal)
Table of Contents
Topic
Sr.no Page.no
1. To study DDL-create and DML-insert commands
Create tables and execute various query on data insert in tables &
2
various options of LIKE predicate.
3. Create an excel worksheet which contain students name and at least
5 subject marks. Apply various formulasfor total, average and
percentage.
4. Study excel various formulas (Minimum 5).
5. Study Microsoft access
Acknowledgement
I am highly thankful for introducing such an existing way of developing my knowledge
regarding the project development. I take pleasure in presenting the report of my On-Job
Training (OJT).
First and for most, I would like to express my deepest sense of gratitude and sincerely thanks
to our Mr. Vikas Gokhale , On- Job Trainer, Database system assistant , for their
support and timely co-operation.
I express my gratitude to Dr. Latesh B. Chaudhari, Principal, RNGPIT, and Dr.vivek. c.
joshi, Head of Department, Bachelor of Vocation-Software Development and Mr.krina
desai, Assistant Professor, B.Voc- Software Development for their constant
encouragement, co-operation and support.
Sincerely
Thakre krish
(230841102065)
Abstract
Graphic design is a craft where professionals create visual content to communicate messages.
By applying visual hierarchy and page layout techniques, designers use typography and
pictures to meet users' specific needs and focus on the logic of displaying elements in
interactive designs, to optimize the user experience. In this On-Job Training, got the skills
of GD with Adobe Illustrator and Corel Draw software‟s, learnt its tools and made
The term UI/UX stands for user interface/user experience design and refers to the practice of
designing digital products with a user-first approach. In other words, the point of UI/UX design
is to create a product that will be both visually appealing and highly pleasant to interact with.
PRATICAL - 1
3
Input:
CREATE TABLE DEPOSIT(ACTNO VARCHAR[5],CNAME VARCHAR[18],BNAME
VARCHAR[18],AMOUNT NUMBER(8,2),ADATE DATE);
INSERT INTO DEPOSIT VALUES ('101','SUNIL','AJNI',5000.00,'4-JAN-96');
INSERT INTO DEPOSIT VALUES ('102','MEHUL','KAROLBAGH',3500.00,'17-NOV-
95');
INSERT INTO DEPOSIT VALUES ('104','MADHURI','CHANDI',1200.00,'17-DEC-95');
INSERT INTO DEPOSIT VALUES ('105','PRMOD','M.G.ROAD',3000.00,'27-MAR-96');
INSERT INTO DEPOSIT VALUES ('106','SANDIP','ANDHERI',2000.00,'31-MAR-96');
INSERT INTO DEPOSIT VALUES ('107','SHIVANI','VIRAR',1000.00,'5-SEP-95');
INSERT INTO DEPOSIT VALUES ('108','KRANTI','NEHRU PLACE',5000.00,'2-JUL-95');
INSERT INTO DEPOSIT VALUES ('109','MINU','POWAI',7000.00,'10-AUG-95');
Output:
4
Input:
CREATE TABLE BRANCH (BNAME VARCHAR [50], CITY[20]);
INSERT INTO BRANCH VALUES ('VRCE','NAGPUR');
INSERT INTO BRANCH VALUES ('AJNI','NAGPUR');
INSERT INTO BRANCH VALUES ('KAROLBAGH','DELHI');
INSERT INTO BRANCH VALUES ('CHANDI','DELHI');
INSERT INTO BRANCH VALUES
('DHARAMPETH','NAGPUR'); INSERT INTO BRANCH
VALUES ('M.G.ROAD','BANGLORE'); INSERT INTO BRANCH
VALUES ('ANDHERI','BOMBAY'); INSERT INTO BRANCH
VALUES ('VIRAR','BOMBAY'); INSERT INTO BRANCH
VALUES ('NEHRU PLACE','DELHI'); INSERT INTO BRANCH
VALUES ('POWAI','BOMBAY');
Output::
5
INPUT:
CREATE TABLE BORROW(LOANNO INT[3],CNAME VARCHAR[50],BANME
VARCHAR[20],AMOUNT FLOAT(4,2));
INSERT INTO BORROW VALUES (201,'ANIL','VRCE',1000.00);
INSERT INTO BORROW VALUES (206,'MEHUL','AJNI',5000.00);
INSERT INTO BORROW VALUES (311,'SUNIL','DHARAMPETH',3000.00);
INSERT INTO BORROW VALUES (321,'MADHURI','ANDHERI',2000.00);
INSERT INTO BORROW VALUES (375,'PRMOD','VIRAR',8000.00);
INSERT INTO BORROW VALUES (481,'KRANTI','NEHRU PLACE',3000.00);
OUTPUT:
6
INPUT:
CREATE TABLE CUSTOMER (CNAME VARCHAR[50], CITY VARCHAR[20]);
INSERT INTO CUSTOMER VALUES ('ANIL','CALCUTTA');
INSERT INTO CUSTOMER VALUES ('SUNIL','DELHI');
INSERT INTO CUSTOMER VALUES ('MEHUL','BARODA');
INSERT INTO CUSTOMER VALUES ('MANDAR','PATNA');
INSERT INTO CUSTOMER VALUES ('MADHURI','NAGPUR');
INSERT INTO CUSTOMER VALUES ('PRMOD','NAGPUR');
INSERT INTO CUSTOMER VALUES ( 'SANDIP','SURAT');
INSERT INTO CUSTOMER VALUES ('SHIVANI','BOMBAY');
INSERT INTO CUSTOMER VALUES ('KRANTI','BOMBAY');
INSERT INTO CUSTOMER VALUES ('NAREN','BOMBAY');
OUTPUT:
--UPDATE DEPOSIT SET ADATE = '1-MAR-95';
7
ENROLLMENT:
2308411020065
1. List all data from table DEPOSIT.
SELECT * FROM DEPOSIT;
2. List all data from BORROW.
SELECT * FROM DEPOSIT;
8
ENROLLMENT: 2308411020065
3. List all data from CUSTOMERS.
SELECT*FROM CUSTOMER;
4. . List all data from BRANCH.
SELECT*FROM BRANCH;
9
5. GIVE account no and amount of depositer.
SELECT ACTNO,AMOUNT FROM DEPOSIT
OUTPUT:
6. give name of depositer having amount greater than 4000.
SELECT CNAME FROM DEPOSIT WHERE AMOUNT>4000;
OUTPUT:
10
7. Give name of customer who opened account after date „1/12/1996‟
SELECT CNAME FROM DEPOSIT WHERE ADATE='1-DEC-96';
OUTPUT:
11
PRATICAL - 2
12
AIM :Create tables and execute various query on data insert in
tables & various options of LIKE predicate.
create table JOB(job_id varchar[50],job_title varchar[20], min_sal int[4],
max_sal[5])
insert into job values('IT_PROG','Programmer',4000,10000);
insert into job values('MK_MGR','Marketing manager',9000,15000);
insert into job values('FI_MGR','Finance manager',8200,12000);
insert into job values('FI_ACC','Account',4200,9000);
insert into job values('LEC','Lecturer',6000,17000);
insert into job values('COMP_OP','Computer operator',1500,3000);
create table EMPLOYEE(emp_n int[3], emp_name varchar[40], emp_sal
int[4],emp_comm int[5], dept_no int[2]);
insert into EMPLOYEE values(101,'smith',800,'',20);
insert into EMPLOYEE
values(102,'snehal',1600,'300',25); insert into
EMPLOYEE values(103,'adama',1100,'0',20); insert into
EMPLOYEE values(104,'aman',3000,'',15);
insert into EMPLOYEE values(105,'anita',5000,'50000',10);
insert into EMPLOYEE values(106,'sneha',2450,'24500',10);
insert into EMPLOYEE values(107,'anamika',2975,'',30);
create table DEPOSIT(a_no int[3],cname varchar[20],bname
varchar[20],amount int[4],Ddate date)
insert into deposit values(101,'anil','andheri',7000,'01-jan-06');
insert into deposit values(102,'sunil','virar',5000,'15-jul-06');
insert into deposit values(103,'jay','villeparle',6500,'12-mar-06');
insert into deposit values(104,'vijay','andheri',8000,'17-sep-06');
insert into deposit values(105,'keyur','dadar',7500,'19-nov-06');
insert into deposit values(106,'mayur','borivali',5500,'21-dec-06');
1. RETRIVE ALL DATA FROM EMPLOYEE,JOB,DEPOSIT.
SELECT *FROM EMPLOYEE;
SELECT *FROM JOB;
SELECT *FROM DEPOSIT;
OUTPUT:
13
2. Give details of account no. and deposited rupees of customers having
account opened between dates 01-01-06 and 25-07-06.
SELECT a_no,amount FROM DEPOSIT WHERE DDATE
BETWEEN 01-01-06 AND 25-07-06;
OUTPUT:
14
3. Display all jobs with minimum salary is greater than 4000.
SELECT job_title FROM JOB WHERE min_sal>4000;
OUTPUT:
4. Display name and salary of employee whose department no is 20. Give
alias name to name of Employee.
SELECT emp_name,emp_sal FROM EMPLOYEE WHERE dept_no =20;
OUTPUT:
5. Display employee no, name and department details of those employee
whose department lies in (10,20).
SELECT emp_n,emp_name,emp_sal FROM EMPLOYEE WHERE
dept_no BETWEEN 10 AND 20;
OUTPUT:
15
To study various options of LIKE predicate
1. Display all employee whose name start with 'A' and third character
is 'a'.
SELECT emp_name, from EMPLOYEE where emp_name like „A%‟
AND emp_name like „a%‟;
OUTPUT :
2. Display name, number and salary of those employees whose name is
5 characters long and first three characters are "Ani'.
SELECT emp_n,emp_name,emp_sal from EMPLOYEE where
length(emp_name)=5 AND emp_name like‟ani%‟;
OUTPUT:
16
3. Display the non-null values of employees and also employee name second
character should be 'n' and string should be 5 character long.
SELECT emp_n,emp_name from EMPLOYEE where
length(emp_name)=5 AND emp_name like „_n%‟;
OUTPUT:
4. Display the null values of employee and also employee name's third
character should be 'a'.
SELECT emp_n,emp_name from EMPLOYEE where
length(emp_name)=5 AND emp_name like „ a%‟;
OUTPUT:
5. What will be output if you are giving LIKE predicate
'%\_%'ESCAPE’\’.
SELECT emp_name from EMPLOYEE where emp_name like
„%\_%'ESCAPE‟\‟;
OUTPUT:
EMPTY
17
PRATICAL - 3
18
3. AIM:Create an excel worksheet which contain students name and at least
5 subject marks. Apply various formulasfor total, average and percentage.
19
PRATICAL - 4
20
4. AIM: Study excel various formulas (Minimum 5).
SUM:
The SUM function in excel adds the numerical values in a range of
cells. Being categorized under the Math and Trigonometry function,
it is entered by typing “=SUM” followed by the values to be
summed. The values supplied to the function can be numbers, cell
references or ranges.
AVGRAGE:
The AVERAGE function is a premade function in Excel, which
calculates the average (arithmetic mean). It is typed =AVERAGE. It
adds the range and divides it by the number of observations.
21
PERCENTAGE: = (H11/250)
To calculate a percentage in Excel, you can use the formula:
"=number/total*100". Replace "number" with the specific value you
want to calculate a percentage of and "total" with the overall value
or sum. Multiply the result by 100 to get the percentage
representation.
MAXIMUM:
The MAX function is a premade function in Excel, which finds the
highest number in a range. It is typed =MAX. The function ignores
cells with text. It will only work for cells with numbers. Note: There
is another function called MIN, which finds the lowest value in a
range, the opposite of MAX.
22
MINIMUM:
The MIN function is a premade function in Excel, which finds the
lowest number in a range. It is typed =MIN. The function ignores
cells with text. It will only work for cells with numbers. Note: There is
another function called MAX, which finds the highest value in a
range, the opposite of MIN.
23
PRATICAL : 5
24
5. AIM: Study Microsoft
access INTRODUCTION:
What is Microsoft Access?
Microsoft Access is a Database Management System offered by
Microsoft. It uses the Microsoft Jet Database Engine and comes as
a part of the Microsoft Office suite of application.
Microsoft Access offers the functionality of a database and the
programming capabilities to create easy to navigate screens
(forms). It helps you analyze large amounts of information, and
manage data efficiently.
Important Terms and Basic Objects
Now in this Microsoft Access tutorial, we will learn about some
important terms and basic objects in MS Access:
Database File
It is a file which stores the entire database. The database file is
saved to your hard drive or other storage devices.
Datatypes
Datatypes are the properties of each field. Every field has one
datatype like text, number, date, etc.
Table
A Table is an object which stores data in Row & Column
format to store data.
A Table is usually related to other tables in the database file.
Each column must have Unique name
We can also define Primary Key in a table.
25
Query
Queries answer a question by selecting and sorting
and filtering data based on search criteria.
Queries show a selection of data based on criteria (limitations)
you provide.
Queries can pull from one or more related Tables and other
Queries.
Types of Query can be SELECT, INSERT,
UPDATE, DELETE.
Form
A form is a database object that you can use to create a user
interface for a database application.
Forms help you to display live data from the table. It mainly
used to ease the process of data entry or editing.
Report
A report is an object in desktop databases primarily used for
formatting, calculating, printing, and summarizing selected
data.
You can even customize the report’s look and feel.
Macros
Macros are mini computer programming constructs. They allow you
to set up commands and processes in your forms, like, searching,
moving to another record, or running a formula.
Modules
Modules are procedures(functions) which you can write
using Visual Basic for Applications (VBA).
26
Advantages of MS Access
Now in this MS Access Tutorial, we will learn the pros/benefits for
using MS Access application:
Access offers a fully functional, relational
database management system in minutes.
Easy to import data from multiple sources into Access
You can easily customize Access according to personal and
company needs
Microsoft Access online works well with many of the
development languages that work on Windows OS
It is robust and flexible, and it can perform any challenging
office or industrial database tasks.
MS-Access allows you to link to data in its existing location
and use it for viewing, updating, querying, and reporting.
Allows you to create tables, queries, forms, and reports, and
connect with the help of Macros
Macros in Access is a simple programming construct
with which you can use to add functionality to your
database.
Microsoft Access online can perform heterogeneous joins
between various data sets stored across different platforms
Disadvantages of MS Access
Here, are the cons for using MS Access
Microsoft Access database is useful for small-to-medium
business sectors. However, it is not useful for large-sized
organizations
Lacks robustness compared to dbms systems like MS SQL
Server or Oracle
All the information from your database is saved into one file.
This can slow down reports, queries, and forms
Technical limit is 255 concurrent users. However, the real-
world limit is only 10 to 80 (depending on the type of
application which you are using)
27
Thank You
28