Page 48 of 93
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY
II Year B.Tech. IT II-SemT P C
DATABASE MANAGEMENT SYSTEMS LAB
To teach the student database design and query and PL/SQL.
Recommended Systems/Software Requirements:
Intel based desktop PC
Mysql /Oracle latest version Recommended
Creation, altering and droping of tables and inserting rows into a table (use constraints while creating tables) examples using SELECT command.
Queries (along with sub Queries) using ANY, ALL, IN, EXISTS, NOTEXISTS, UNION, INTERSET, Constraints.
Example:- Select the roll number and name of the student who secured fourth rank in the class.
Queries using Aggregate functions (COUNT, SUM, AVG, MAX and MIN), GROUP BY, HAVING and Creation and dropping of Views.
Queries using Conversion functions (to_char, to_number and to_date), string functions (Concatenation, lpad, rpad, ltrim, rtrim, lower, upper, initcap, length, substr and instr), date functions (Sysdate, next_day, add_months, last_day, months_between, least, greatest, trunc, round, to_char, to_date)
i)Creation of simple PL/SQL program which includes declaration section, executable section and exception –Handling section (Ex. Student marks can be selected from the table and printed for those who secured first class and an exception can be raised if no records were found)
ii)Insert data into student table and use COMMIT, ROLLBACK and SAVEPOINT in PL/SQL block.
Develop a program that includes the features NESTED IF, CASE and CASE expression. The program can be extended using the NULLIF and COALESCE functions.
Program development using WHILE LOOPS, numeric FOR LOOPS, nested loops using ERROR Handling, BUILT –IN Exceptions, USE defined Exceptions, RAISE- APPLICATION ERROR.
Programs development using creation of procedures, passing parameters IN and OUT of PROCEDURES.
Program development using creation of stored functions, invoke functions in SQL Statements and write complex functions.
Program development using creation of package specification, package bodies, private objects, package variables and cursors and calling stored packages.
Develop programs using features parameters in a CURSOR, FOR UPDATE CURSOR, WHERE CURRENT of clause and CURSOR variables.
Develop Programs using BEFORE and AFTER Triggers, Row and Statement Triggers and INSTEAD OF Triggers
TEXT BOOKS :
1)ORACLE PL/SQL by example. Benjamin Rosenzweig, Elena Silvestrova, Pearson
Education 3rd Edition
2)ORACLE DATA BASE LOG PL/SQL Programming SCOTT URMAN, Tata Mc-
3)SQL & PL/SQL for Oracle 10g, Black Book, Dr.P.S. Deshpande.