TechnologyTMU, Moradabad Session: July 2023 - Dec 2023
Submitted To: Submitted By:
Mr. Ajay Rastogi Anjali Singh
TCA2057007
B.tech CS
(IBM) Lab Assigment No: 1
S. Program Page Date Si Remar
No. Name No. gn ks 1 Create storage group stg1. 2 Creating table space ts1. 3 Creating two schemas s1 and s2. 4 Create Employee (EmpID, EmpName, Salary, Exp) table in both schemas. 5 Rename the column name Exp to Expenditure.
6 Modify the Data type of Salary column with
double data type.
7 Show the table structure Employee.
8 Create an alias to s1.employee or Emp. 9 Create a tbale Student (RollNo int primary key, Name varchar(30)
10 Add a column Subject_Name in allocation Table.
Lab Assigment No: 2
S. Program Page Date Si Remar
No. Name No. gn ks 1 How do you define a primary key in DB2, and why is it important? 2 What are the various data types supported in DB2, and provide examples of when to use them? 3 Discuss the concept of indexing in DB2. How does it improve query performance?
4 How do you perform a backup and restore in
DB2 to ensure data integrity and availability? 5 How can you monitor and optimize the performance of a DB2 database?