Lab Manual - Database (1)
Lab Manual - Database (1)
603203
LAB MANUAL
Course :BCA
SEMESTER
II
SUBJECT TITLE
DATABASE
TECHNOLOGY
SUBJECT CODE
V20UDS203
Prepared By
Mrs Ida Seraphim
Assistant Professor
/CTECH SRM IST
COURSE OUTCOME
This manual is intended for the First year students of MCA branch in the subject
of Database Technology . This manual typically contains practical/Lab Sessions
related to, SQL, Triggers and PL/SQL Language covering various aspects related
the subject to enhanced understanding.
Although, as per the syllabus, SQL are prescribed, we have made the efforts to
cover various aspects of SQL Languages
Students are advised to thoroughly go through this manual rather than only
topics mentioned in the syllabus as practical aspects are the key to understanding
and conceptual visualization of theoretical aspects covered in the online contents.
Guidelines
1. Students are instructed to perform their lab exercises/assignments at their
own system from their respective residences
2. Writing and editing the program in your system.
Compiling and Executing the program and save the output
3. The students are also advised to submit completed Lab assignments in the
prescribed format (Appendix-1) in LMS
4. The students are advised to complete the weekly activities/assignments well in
time.
5. The submitted Lab Assignment will be evaluated for end semester Practical
examination
6. The students must get the completed Lab Assignments evaluated by the
concerned course coordinator by LMS , Failing which the Lab assignments for that
week will be treated as incomplete.
7. At least TEN (10) such timely completed Lab assignments are compulsory,
failing which students will not be allowed to appear in the final end semester Lab
Examination.
Aim - Study basic data definition language commands and execute them using
oracle sql plus.
2. Process Steps/Description
3.Methodology
4. Sample Commands -
create table <tablename>(col 1 data type(size of col1), col2 data type(size of col2)….);
Example:
Table created.
NAME VARCHAR2(20)
EMAIL VARCHAR2(100)
DOB DATE
3. ALTER: It is used to alter the structure of the database. This change could be either
to modify the characteristics of an existing attribute or probably to add a new attribute.
Syntax:
Example:
Table altered.
Example:
Table dropped.
5. TRUNCATE: It is used to delete all the rows from the table and free the
space containing the table.
Syntax:
TRUNCATE TABLE
table_name; Example:
Table truncated.
2. Process Steps/Description
3.Methodology
4. Sample Commands -
Deleting rows
Merge
Provides the ability to conditionally update or insert data into a database table.
Eg.
UPDATE SET
c.ename = e.ename,
c.salary = e.salary
5. Sample Input/Output: