Вы находитесь на странице: 1из 7

Madurai Kamaraj

University

Master of Computer Applications


Second Year

Practical Record
RDBMS

MUSLIM ASSOCIATION TRUST


2

THIRUVANANTHAPURAM
3

Madurai Kamaraj
University

MUSLIM ASSOCIATION EDUCATIONAL


TRUST
NANDAVANAM, THIRUVANANTHAPURAM

Master of Computer Applications


Second Year

RELATIONAL DATABASE MANANGEMENT SYSTEM(RDBMS)

Name :
Enrolment No :
Course : MCA (Second Year)
Record for the year : 2006-07
4

Examiner Internal
Examiner
5

INDEX

Page
Sl.No. Content
No

1 Introduction 1

SQL Statements and queries


2 1. Creation of Database Objects. 3-17
2. SQL commands (2.1 to 2.31)

Create table bill having fields consumer number,


3 consumer name, initial reading and final reading 18-21
without specifying the primary key.(3.1 to 3.7)

Write a program to find the given number is odd or


4 22
even.

5 Write a program to find the largest of three numbers. 23

Write a program to count the number of words in a


6 24
sentence.

Write a program to check whether the given string is


7 25
a palindrome or not.

Write a program to perform the operation of two


8 26
numbers by giving the operators.

Write a program to read the ename and empno from


9 27
the emp table using cursor.
6

Page
Sl.No. Content
No

Write a program to create table and insert the values


into the table taking from another table and increase
10 28
the salary by 5%. Display the details of the new
table.

Write a program to print the mark list of students


11 29
from a student table and show the grade.

Write a program to find the factorial of a number


12 31
using a function

Consider and account table containing acno, name


and balance. Display all the details of account
13 32
holders who have a balance greater than a particular
value passed.

Write a program to delete a record from a table by


14 33
inputting an item in the table using a procedure.

Write a program to find square of a number suing


15 34
package.

Write a program to find the charge to be paid


by customer. The table BILLING contains
consumer number, consumer name, current
reading, previous reading. If current reading is
less than previous reading, display the
message “Meter Complaint” .The charge is
calculated as follows.
16 If unit consumed is <100, then charge is 35
Rs.100.
If unit consumed is between 100 and 300, the
unit consumed is 100+ Rs.0.80 for excess of
100.
If unit consumed is >300 the charge is 260 +
Rs.50 for excess of 300.
7

Вам также может понравиться