Database Applications Lab Practicals
1. BASICS OF HTML -
a. Create a simple html page to write brief description about yourself using header tags,
paragraph tag and the basic structural tags of HTML
b. Create a html page to demonstrate the usage of basic text formatting tags.
c. Create a html page to display your class time table using tag. (Do not use table).
2. IMAGES IN HTML
a. Create an image gallery of any three popular places in Uttarakhand along with their short
description.
b. Demonstrate the use of align, vspace and hspace attribute using minimum of two images.
4. LINKS IN HTML
a. Create a webpage to containing brief description about your college and links to your
college and university website.
b. Demonstrate the use of top to bottom and bottom to top using two anchor tags.
5. LISTS IN HTML
a. Create the following list using html.
1. BSc
2. MSc
a. Semester 1
● Subject 1
● Subject 2
● Subject 3
b. Semester 2
c. Semester 3
3. BScIT
b. Create the following list using html
A. Movies
i. English
ii. Hindi
iii. Kumaoni
iv. Garhwali
B. Reading
C. Music
D. Travel
E. Social Networking
F. Chatting
6. TABLES IN HTML
a. Design the following table using HTML.
7. FORMS IN HTML
a. Design a html form to demonstrate the 10 different types of controls generated using
INPUT tag.
b. Design a html form to submit a job application form. Demonstrate the use of drop-down
list, textareas and file upload control.
8. CSS
a. Design a html page to demonstrate different types of CSS ( INLINE CSS, INTERNAL CSS
and EXTERNAL CSS ) and their precedence.
b. Design a html page to demonstrate the various types of selectors in HTML.
c.Create a webpage to display your resume using DIV tag, TABLE tag and CSS.
9. To study DDL-create and DML-insert commands.
● Create tables according to the following definition.
1.TABLE DEPOSIT (AC_NO, CNAME, BNAME, AMOUNT, ADATE )
Name Type
----------------------------------------------------------------------------------------------
ACTNO VARCHAR2(5)
CNAME VARCHAR2(18)
BNAME VARCHAR2(18)
AMOUNT NUMBER(8,2)
ADATE DATE
--------------------------------------------------------------------------------------------------------------
2.TABLE BRANCH ( BNAME ,CITY)
Name Type
-----------------------------------------------------------------------------------------------
BNAME VARCHAR2(18)
CITY VARCHAR2(18)
3.TABLE CUSTOMER ( CNAME ,CITY)
Name Type
------------------------------------------------------------------------------------------------
CNAME VARCHAR2(19)
CITY VARCHAR2(18)
-------------------------------------------------------------------------------------------------
4.TABLE BORROW (LOANNO, CNAME, BNAME, AMOUNT)
Name Type
-----------------------------------------------------------------------------------------------
LOANNO VARCHAR2(5)
CNAME VARCHAR2(18)
BNAME VARCHAR2(18)
AMOUNT NUMBER(8,2)
------------------------------------------------------------------------------------------------
Insert the data as shown below (upto 5 records in all the above relations).
From the above given tables perform the following queries:
(1) Describe deposit, branch,borrow, customers.
(2) List all data from table DEPOSIT,BORROW,CUSTOMERS,BRANCH.
(3) Display name of depositors having amount greater than 4000.
(4) Display name of customers who opened account after date '1-12-96'.
10. To study various options of LIKE predicate & Single-row functions
(1) Display all employee whose name start with ‘A’ and third character is ‘a’.
(2) Display name, branch and salary of those employees whose name is 5 characters long and
first three characters are ‘Ani’.
(3) Write a query to display the current date.
11. To Perform various data manipulation commands, aggregate functions and sorting
concept on all created tables.
(1) List total deposit from deposit relation.
(2) List total loan from Haridwar branch.
(3) Update the value of employee name whose employee number is 103.
(4) Delete all the rows from table BORROW.
12. To apply the concept of Aggregating Data using Group functions.
(1) Count total number of customers relation.
(2) List total deposit of customers living in city Jwalapur.
(3) List maximum deposit of customers living in Roorkee.
(4) List total deposit of customer having account date after 1-jan-96.
13. Write PL/SQL code :
i) To display sum of two numbers given by the user.
ii) To find the greatest number among given three numbers
iii) To print the Factorial of a number given by the user.
iv) To implement a recursive function to calculate the factorial of a number
v) Create a function that accepts 2 numbers and returns the addition of passed values.
vi) Create a trigger so that the total and average of specified marks is automatically
inserted whenever a record is inserted.
vii) Create a row trigger to check the age should be less than 25 before a new record
to be inserted & updated in student table.
viii) To implement exception handling showing following errors :
a. NO_DATA_FOUND
b. TOO_MANY_ROWS
c. ZERO_DIVIDE
d. User-defined Error
Prepared by:Mr. Hitesh Pujari