0% found this document useful (0 votes)
2 views

Assignment-1

The document outlines the laboratory assignment for the Introduction to Databases course (CSE 3151), focusing on practicing DDL and DML commands. It specifies the creation of several tables with defined columns, data types, and sizes, including Instructor, Course, Prereq, Department, and Teaches. Additionally, it instructs students to insert data into these tables, although the specific data for insertion is not provided in the document.

Uploaded by

akkianand041526
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Assignment-1

The document outlines the laboratory assignment for the Introduction to Databases course (CSE 3151), focusing on practicing DDL and DML commands. It specifies the creation of several tables with defined columns, data types, and sizes, including Instructor, Course, Prereq, Department, and Teaches. Additionally, it instructs students to insert data into these tables, although the specific data for insertion is not provided in the document.

Uploaded by

akkianand041526
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Laboratory Assignments

Subject: Introduction to Databases


Subject code: CSE 3151

Assignment 1: Practicing DDL and DML Commands


Objective of this Assignment:
 To create tables and to insert data into these tables.

1. Create the following Tables with their respective columns, data types and size.

Table Name Columns Datatypes Size


ID Number 5
Name Varchar2 30
Instructor Dept_name Varchar2 20
Salary Number 6

Table Name Columns Datatypes Size


Course_id Varchar2 10
Title Varchar2 30
Course Dept_name Varchar2 20
Credits Number 2

Table Name Columns Datatypes Size


Course_id Varchar2 10
Prereq Prereq_id Varchar2 10

Table Name Columns Datatypes Size


Dept_name Varchar2 20
Building Varchar2 20
Department
Budget Number 10

Table Name Columns Datatypes Size


ID Number 5
Course_id Varchar2 10
Sec_id Number 2
Teaches Semester Varchar2 10
year Number 4
2. Insert data into Instructor table with the data below:

3. Insert data into Course table with the data below:


4. Insert data into Prereq table with the data below:

5. Insert data into Department table with the data below:

6. Insert data into Teaches table with the data below:

You might also like