BTCOL506 Database Systems Laboratory
Gramin Technical and Management campus Nanded
Department of computer Engineering (Degree (3rd Year / 5th Sem))
Name- Atharva Yashwantrao Bodhankar PRN No: 24025081245505
Subject - BTCOL506 - Database Systems Laboratory
DOP – ___/___/ 2025 DOC – ___/___/2025
Aim - Creating tables, Renaming tables, Data constraints (Primary
key, Foreign key, Not Null), Data insertion into a table.
Connecting To The Oracle –
1. Query For Creating Table –
Practical No. 2 Page 1 of 3
BTCOL506 Database Systems Laboratory
2. Query For Renaming Table
3. Data Constraints (It Deals With schema of table so it can perform only
by creating table or altering table through alter command. I done it by
Creating tables )
A. Query For Primary Key –
(Note - Creating New Table atharvab and assigning sid to primary key )
B. Query For Foreign key
(Note – For foreign key a previous table required I used above table
‘atharvab’ and assign forign key to its column ‘Sid’ But this column must
have Primary Key )
Practical No. 2 Page 2 of 3
BTCOL506 Database Systems Laboratory
C. Query For Not Null –
4. Query For Inserting Data (Into ‘Atharva_friends’ Table)
Practical No. 2 Page 3 of 3