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

DBMS_exp1

The document outlines two experiments in a Database Management System course. The first experiment involves creating and manipulating a student table, while the second focuses on an account table for a bank. Both experiments aim to perform various DDL and DML operations, including creating tables, adding columns, inserting records, and updating or deleting entries.

Uploaded by

Rohit Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

DBMS_exp1

The document outlines two experiments in a Database Management System course. The first experiment involves creating and manipulating a student table, while the second focuses on an account table for a bank. Both experiments aim to perform various DDL and DML operations, including creating tables, adding columns, inserting records, and updating or deleting entries.

Uploaded by

Rohit Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

DEPARTMENT OF

COMPUTER SCIENCE & ENGINEERING

Experiment 1.1
Student Name: Ishan UID: 23BCS12656
Branch: BE-CSE Section/Group: 605-A
Semester: 4th Date of Performance: 27-01-25
Subject Name: Database Management System Subject Code: 23CSH-205

1. Aim: A collage track student academic performance.


Perform the following:
 Create a student table with columns: student ID, Name,
Age, Course and marks.
 Add a column gender to the student table.
 Insert five student records.
 List all students with marks between 75 and 90.
 Drop the gender column for the student table.
 Delete a student where student ID=101.

Objective:
To perform DDL and DML query mentioned in the aim.

DBMS script and output:


STEP 1: CREATE TABLE
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

STEP 2: ADD column gender.

STEP 3: INSERT values in Table


DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

STEP 4: Students marks BETWEEN 75 AND 90.

STEP 5: Drop the gender column.


DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

STEP 6:Delete a student where student ID=101.

OUTPUT:
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

2. Aim: A bank manages its account holders data perform the


following:
 Create a account table with columns: Account no.,
Holder Name, Account Type, Balance.
 Add a column branch to the account table.
 Insert five account holder records.
 List all accounts with a balance> 50000
 Delete the account where a account no. =201
 Update the balance for an account where account no.
=203
Objective:
To perform DDL and DML query mentioned in the aim.

DBMS script and output:


STEP 1: CREATE TABLE
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

Step 2: ADD a column BRANCH.

Step 3: INSERT values in Table.


DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

Step 4: List all accounts with a balance>50000.

Step 5: Delete account where account no. =201.


DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

Step 6: Update the balance for an account where account no.


=203.

OUTPUT:

You might also like