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

Spring 2023 - CS403 - 2

This document provides instructions for Assignment No. 02 in the CS403 Database Management Systems course, which involves creating tables in a SQL Server database based on an entity relationship diagram, inserting sample data, and writing queries to retrieve and manipulate data from the tables. Students must create a database using their VU ID, define tables and relationships according to the ERD, insert 2 records per table, and write queries to display block details, average block charges, and remove a column from the Stadium table. Screenshots of the SQL code and results must be submitted.

Uploaded by

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

Spring 2023 - CS403 - 2

This document provides instructions for Assignment No. 02 in the CS403 Database Management Systems course, which involves creating tables in a SQL Server database based on an entity relationship diagram, inserting sample data, and writing queries to retrieve and manipulate data from the tables. Students must create a database using their VU ID, define tables and relationships according to the ERD, insert 2 records per table, and write queries to display block details, average block charges, and remove a column from the Stadium table. Screenshots of the SQL code and results must be submitted.

Uploaded by

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

Assignment No.

02 (Graded) Total Marks: 20


SEMESTER Spring 2023
Due Date: 14-7-2023
CS403- Database Management System

Instructions:

Please read the following instructions carefully before solving & submitting assignment:

It should be clear that your assignment will not get any credit (zero marks) if:

o The assignment is submitted after due date.


o The submitted assignment does NOT open or file is corrupted.
o The assignment is copied (from other student or ditto copy from handouts or internet).
o You are supposed to submit your assignment in .doc / Docx format. Any other formats like scan images,
PDF, Zip, rar, bmp etc will not be accepted.

Objectives:

The objectives of this assignment are,

• To give students the idea of the most commonly used RDBMS for designing physical database
systems i.e., MS SQL SERVER.

• To build and manage SQL Server databases.

• To apply constraints e.g., Primary Key and foreign key on attributes.

• To insert data in SQL tables, retrieve and manipulate data with SQL queries from tables.

Important Note: The assignment will be marked zero if the assignment solution does not have student
own ID as database name. Copy all screenshots of SQL code and paste code screenshots in MS Word as
your solution.

Note: Students can also use online SQL Editors to write and run the SQL commands for the given tasks.
For any query about the assignment, contact at [email protected]

GOOD LUCK

Marks: 20
Question Statement:

Consider following ERD part from scenario of Assignment No. 1.

Tasks Description:

Task 1:

Write SQL statement to create a new database in SQL Server by your VU ID (sample screenshot is provided on
the last page of this file).

Task 2:

Write SQL statements for the following:

 Create tables: Stadium, MatchSchedule and Block in database created in Task 1.


 For each table, you have to define all attributes/columns given in ERD with appropriate data types.
 You are also required to define Primary key of each table.
 Transform multi-valued attribute.
 Map all relationships and add foreign keys in appropriate tables according to relationships types.
Task 3:

Write SQL Statements to insert 2 records in each table.

Task 4:

Write SQL Statements to:

1. Display name and capacity of all blocks.

2. Display Average charges/amount of blocks using appropriate function.

3. Remove column StadName from Stadium table.


Note: There should be one screenshot for each task i.e., 4 screenshots for 4 given tasks.

Sample Screenshot:

Note: Students can also use online SQL Editors to write and run the SQL commands for the given tasks.

Lectures Covered: This assignment covers Lecture # 24-30

Deadline: Your assignment must be uploaded/submitted at or before 14th July 2023.

You might also like