0% found this document useful (0 votes)
24 views27 pages

Dpa Drashti

The document is a practical course certificate for Paladiya Drashti N., a student of FY BCA at Vishwabharti Girls Institute, certifying completion of practical coursework under the guidance of Mrs. Dipikame Patel for the academic year 2024-2025. It includes various tasks related to creating worksheets, SQL queries, and data manipulation exercises. The tasks cover operations such as calculating totals, applying formatting, creating tables, and executing SQL queries for a patient database.

Uploaded by

shihorapooja8
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views27 pages

Dpa Drashti

The document is a practical course certificate for Paladiya Drashti N., a student of FY BCA at Vishwabharti Girls Institute, certifying completion of practical coursework under the guidance of Mrs. Dipikame Patel for the academic year 2024-2025. It includes various tasks related to creating worksheets, SQL queries, and data manipulation exercises. The tasks cover operations such as calculating totals, applying formatting, creating tables, and executing SQL queries for a patient database.

Uploaded by

shihorapooja8
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 27

NAME:- Paladiya Drashti N.

CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38
VISHWABHARTI GIRLS INSTITUTE
OF COMMERCE MANAGEMENT
AND COMPUTER APPLICATION-
MORTHANA.

CERTIFICATE
THIS IS TO CERTIFY THAT
STUDYING IN BCA, ENROLLMENT NO. E OF
THIS INSTITUE HAS SATISFACTORILY COMPLETED
PRACTICAL COURSE UNDER THE GUIDANCE OF
MRS. DIPIKAMEM PATEL FOR THE ACADEMIC
YEAR 2024-2025.

Internal Examiner Signature Professor’s


Signature

External Examiner Signature

DATE : COLLEGE
STAMP
NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38

DPA JOURNAL
No Questions Pag
. e no.
1 Create following worksheet and do the 02
following operations.

2 Create following worksheet and do the 05


following operation in separate sheet.

3 Create a worksheet of following fields and 8


do the following operation in separate
sheet.

4 Create table student with fields 13


[STUS_ID,STUD_NAME,CITY,PHONE_NO]
using primary key to STUD_ID.

5 Solve the following queries using SQL. 17


NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38
Q-1 Create following worksheet and do the following
operations.

1.Calculate total items and total price using formula.


Total item=North India+ South India+ Central India+ East
India
Total Price=Price/Unit*Total Item

2.Calculate total item sold in particular region.


Total= Mobile+ T.V.+ Home Appliances(For North India,
South India, Central India, East India)
NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38
3.Apply blue colour to those items where item sold greater
than 1100.

4.Extract product information which sold minimum in central


India.

5.Draw 3D column chart product VS Region.


NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38
6.Protect the sheet from unauthorized user.
NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38

Q-2 Create following worksheet and do the following


operation in separate sheet.

1.Insert at least 10 records.


NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38
2.Calculate the total of each student.

3.Calculate percentage of each student.

4.Declare the result of each student PASS or FAIL.


NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38
5.Apply green colour to those subject marks which are less
than 35.

6. Declared the class based on the following criteria.


a. If percentage greater than or equal to 70 than class is
Distinction.
b. If percentage greater than or equal to 60 and less than 70
then class is First.
c. If percentage greater than or equal to 50 and less than 60
then class is Second.
d. If percentage greater than or equal to 40 and less than 50
then class is Pass else class is Fail.
7. If the student is fail then give Red background to the
Percentage cell.
8. Freeze header row.
NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38
Q-3 Create a worksheet of following fields and do the
following operation in separate sheet.

Add at least 10 records.

1.Each Designation must be Programmer, Designer,


Analyzers and Project Manager only.
NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38
2.Apply blue font color on project duration of within 10
months else orange color.

3.Calculate Salary (Pay/Month * Project Duration)


NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38

4. Calculate Bonus as follows.


i) If project duration is within 10 then give 10% bonus on
salary.
ii) If duration between 10 and 36 then give 25% bonus on
salary.
iii) If duration is between 36 and 60 then give 35% bonus on
salary else 50%.

5.Calculate Gross Salary(Salary + Bonus)


NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38

6.Deduct 15% tax on Gross salary.

7.Derive net salary (Gross salary-tax).


NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38

8.Filter Record of Employee who works on Projects having


MAX DURATION.
NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38
Q-4 Create table student with fields
[STUS_ID,STUD_NAME,CITY,PHONE_NO] using primary key to
STUD_ID.
Create table STUDENT
(
STUD_ID integer primary key,
STUD_NAME varchar(20),
CITY varchar(15),
PHONE_NO numeric
);
NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38

1.Add a field for marks [SUB1, SUB2, SUB3, TOTAL ] in the table.
Alter table STUDENT .
Add column SUB1 numeric;
Alter table STUDENT
Add column SUB2 numeric;
Alter table STUDENT
Add column SUB3 numeric
Alter table STUDENT
Add column TOTAL numeric;

2.Insert 5 records in table.


NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38
3.Change the name of student to ‘FORAM’ whose STUD_ID is
3.
Update STUDENT
Set STUD_NAME=’FORAM’
Where STUD_ID=3;

4.Delete the record of student whose STUD_ID is 4.


Delete from STUDENT
Where STUD_ID=4;
NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38
5.Rename the student table to STUD.
Alter table STUDENT
Rename to STUD;

6.Select all records of student.


Select *from STUD;
NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38

7.Display the name and total marks of student.


Select STUD_NAME and TOTAL from STUD;

Q-5.Solve the following queries using SQL.


Patient_Master(P_no,P_name,DOB,Gender,City,TypeOfDisea
se)
Constraints:
P_noshould be unique.
TypesOfDisease contains
Malaria,Typhoid,Dengue,Chikungunya
Gender column cannot be null.
NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38

1.Create a table with appropriate constraints.


Create table Patient_Master
(
P_NO INTEGER PRIMARYKEY,
P_NAME varchar(30),
DOB DATE,
GENDER VARCHAR(15) NOT NULL,
CITY VARCHAR(20),
TYPESOFDISEASE VARCHAR(40)
CONSTRAINTS CHk_DIASEASE check (TYPESOFDISEASE in
‘MALARIA’,’TYPHOID,DENGUE,CHIKUNGUNYA);
NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38
Insert 10 records in table.

2.Write a query to display all patients whose name start with


‘A’ or ‘M’.
Select * from Patient_Master
whereP_name like 'A*' or 'M*'
NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38

3.Write a query to display all patients whose name not start


with ‘D’.
Select * from Patient_Master
whereP_name not like 'D*'

4.Write a query to display all patients whose name start with


‘A’ and ends with ‘A’.
Select * from Patient_Master
whereP_name like 'A*' and '*A';

5.Display all patients who lives in ‘Surat’ and ‘Baroda’ city


NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38
select * from Patient_Master
where city in 'Surat' and 'Baroda';

6.Display all patients whose not lives in ‘Bharuch’.


select * from Patient_Master
where city not in 'Bharuch';
NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38
7.Write a query to display total number of patients of ‘Surat’
city.
select city, count (P_No) from Patient_Master
group by city;
Having city = 'Surat'
NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38
8.Display P_no,P_name and TypesOfDisease for all ‘Male’
patients.
selectP_no, P_name, TypesOfDisease from Patient_Master
where Gender = 'Male'

9.Display all patients having ‘Malaria disease.


selectTypesOfDisease from Patient_Master
where types of disease = ‘Malaria’
NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38
10.Display the Patients details whose DOB is between ’01-01-
2005’ and ’30-12-2010’.
Select * from PATIENT_MASTER
Where DOB BETWEEN '2005-01-01' AND '2010-12-30

11.Add column ‘contactNo’ to the given table.


Alter table Patient_Master
add column contact number numeric;
NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38
NAME:- Paladiya Drashti N.
CLASS :- FY BCA
DIV :- 3
ROLL NO.:- 38

You might also like