Documente Academic
Documente Profesional
Documente Cultură
To be able to understand the requirement and uses of database in the real life
and how to create database structure practically using basic database concepts.
1. To be able to CREATE table in the database.
2. To be able to ALTER or MODIFY table.
3. To be able to DROP table from the Database.
4 . INPUT:
4.1 REQUIREMENTS
Requires computers with at least one database tool ORACLE, MSSQL, DB2 etc.
4.2THEORY
5. PROCEDURE:
1. CREATE TABLE
2. ALTER TABLE
a. ADD
b. MODIFY
3. TRUNCATE TABLE
4. DROP TABLE
Null?
Type
VARCHAR2(20)
DEPT
VARCHAR2(5)
DOJ
DATE
Null?
Type
NAME
VARCHAR2(20)
DEPT
VARCHAR2(5)
DOJ
DATE
REGNO
NUMBER(10)
3. MODIFY COMMAND
SQL> alter table student modify ( name varchar2(25));
Table altered.
SQL> desc student;
Name
Null?
Type
VARCHAR2(25)
DEPT
VARCHAR2(5)
DOJ
DATE
REGNO
NUMBER(10)
1 row created
SQL> select * from student;
ROLLNO NAME
DEPT
DOJ
REGNO
cse
15-AUG-06 8082104001
ece
20-JUL-06 8083104001
Null?
Type
VARCHAR2(25)
DEPT
VARCHAR2(5)
DOJ
DATE
REGNO
NUMBER(10)
ERROR:
ORA-04043: object student does not exist
SQL> select * from student;
select * from student
* ERROR at line
1:
ORA-00942: table or view does not exist
6. ASSESMENT:
Self
study
15%
Theory
Knowledge
20%
Practical
perform
20%
Report
presentation
10%
7. CONCLUSION:
Sample
Test/ Viva
Questions/
spot quizzes
20%
Professional
behavior
15%