You are on page 1of 3

DATABASE MANAGEMENT SYSTEM

EXPERIMENT 1.3
NAME: Harsh Chhibber UID: 21BCS7398

SECTION/GROUP: 701 ‘A’ DATE: 30/08/2022

SUBJECT: Database Management System BRANCH: CSE

AIM: .Write a PL/SQL program to find odd or even number.

SOURCE CODE / QUERIE


DATABASE MANAGEMENT SYSTEM

DECLARE

num NUMBER(10);

r NUMBER(10);

BEGIN

num := 17;

r := MOD (num , 2);

IF r = 0 THEN

dbms_output.Put_line('Even');

ELSE

dbms_output.Put_line('Odd');

END IF;

END;

OUTPUT
DATABASE MANAGEMENT SYSTEM
Learning outcomes (What I have learnt):
1. Basic understanding of functionalities of Oracle 11g.
2. Concept of creating database.

3. Concept of insertion, updation, & displaying value.


4. Concept of the syntax errors which can be encountered.

Evaluation Grid :

Sr. No. Parameters Marks Obtained Maximum Marks


1. Student Performance 12
(Conduct of experiment)
objectives/Outcomes.
2. Viva Voce 10
3. Submission of Work Sheet 8
(Record)
Total 30

You might also like