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

dbms assessment

The document outlines a DBMS experiment focused on managing a sports club database by creating a member table, adding a membership fee column, and performing SQL operations such as inserting records, retrieving members with fees of 1000 or more, and updating a member's sports club. The experiment includes SQL scripts for table creation, alteration, data insertion, and querying. Learning outcomes emphasize skills in table management, data manipulation, and SQL query execution.

Uploaded by

premrawat9873
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)
0 views

dbms assessment

The document outlines a DBMS experiment focused on managing a sports club database by creating a member table, adding a membership fee column, and performing SQL operations such as inserting records, retrieving members with fees of 1000 or more, and updating a member's sports club. The experiment includes SQL scripts for table creation, alteration, data insertion, and querying. Learning outcomes emphasize skills in table management, data manipulation, and SQL query execution.

Uploaded by

premrawat9873
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/ 4

DEPARTMENT OF

COMPUTER SCIENCE & ENGINEERING

Experiment 1.1
Student Name: Prem Rawat UID: 23BCS10659
Branch: B.E-CSE Section/Group: 811-A
Semester: 4th Date of Performance: 28/01/2024
Subject Name:DBMS Subject Code: 23CSH-205

1. Aim: Create a member table with column member ID,Name


and sports club. Add a new column membership fee to the
member table. Insert 5 member records list all member
paying fee>=1000. Update sports for member 102.

2. Objective: The objective is to manage a sports club database by


creating a member table, adding a membership fee column, inserting
sample data, retrieving members with fees ≥ 1000, and updating a
member's sports club using basic SQL operations.

3. DBMS script and output:


//creating table
CREATE TABLE Member (
MemberID INT PRIMARY KEY,
Name VARCHAR(50),
SportsClub VARCHAR(50)
);
describe member;
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

// Add a new column MembershipFee to the Member table

ALTER TABLE Member ADD MembershipFee INT;

// Insert 5 member records

INSERT INTO Member (MemberID, Name, SportsClub,


MembershipFee)
VALUES
(101, 'Prem', 'Tennis Club', 1200),
(102, 'Ayush', 'Football Club', 900),
(103, 'Arunabha', 'Swimming Club', 1500),
(104, 'Arjun', 'Basketball Club', 1000),
(105, 'Utkarsh', 'Badminton Club', 800);

SELECT * from member;


DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

// List all members paying a fee >= 1000

SELECT * FROM Member WHERE MembershipFee >= 1000;

// Update the sports club for member 102


UPDATE Member SET SportsClub = 'Cricket Club' WHERE MemberID =
102;
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

4. Learning outcomes
 Table Creation: Learn how to define a table structure with appropriate
data types and primary keys.
 Table Alteration: Understand how to modify an existing table to add new
columns.
 Data Insertion: Gain skills in inserting records into a table using SQL
INSERT statements.
 Data Retrieval: Learn to query specific data using conditions in the
SELECT statement.
 Data Update: Understand how to modify existing records in a table with
the UPDATE statement.

You might also like