0% found this document useful (0 votes)
3 views2 pages

Spring 2025 - CS403 - 2

The document outlines the instructions and objectives for Assignment No. 02 for the CS403 Database Management System course at the Virtual University of Pakistan. Students are required to create a database using SQL commands to track students, courses, and enrollments, and must submit their assignments in .doc or .docx format by June 24, 2025. The assignment includes tasks such as inserting records into tables and writing SQL queries based on given statements.
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)
3 views2 pages

Spring 2025 - CS403 - 2

The document outlines the instructions and objectives for Assignment No. 02 for the CS403 Database Management System course at the Virtual University of Pakistan. Students are required to create a database using SQL commands to track students, courses, and enrollments, and must submit their assignments in .doc or .docx format by June 24, 2025. The assignment includes tasks such as inserting records into tables and writing SQL queries based on given statements.
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/ 2

Virtual University of Pakistan 1

Assignment No. 02 (Graded) Total Marks: 20


Spring 2025
Due Date: 24-Jun-2025
CS403- Database Management System
Instructions:

Please read the following instructions carefully before solving and submitting the assignment solution.

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

 The assignment is submitted after the due date.


 The submitted assignment solution does NOT open, or the file is corrupt.
 The assignment is copied (from other students or ditto copy from handouts or the internet).
 Please ensure that your assignment submission is in .doc or .docx format. Other formats such as scanned images,
PDFs, .zip, .rar, .bmp, etc., will not be accepted.

Objectives:

Objectives of the assignment

1. Understanding SQL Commands:

o Help students become familiar with essential SQL commands such as:

 INSERT: Adding new records to a database.

 SQL OPERATORS: Operators are used to specify conditions in SQL statements.

 SELECT: Querying and retrieving data from tables.

 WHERE: Filtering results based on specific conditions.

2. Developing SQL-Based Solutions.


For any query about the assignment, contact at [email protected]

Marks: 20

Scenario

CS403 - Assignment no. 2


Virtual University of Pakistan 2

You are required to create a database for a university that tracks students, courses and enrollments using SQL
commands. Here are the table’s details:

1. Students Table: student_id (primary key), first_name, last_name, date_of_birth, gender, email, phone, and
admission_date.

2. Courses Table: course_id (primary key), course_name, department, credits, and instructor_name.

3. Enrollments Table: enrollment_id (primary key), student_id (foreign key), course_id (foreign key),
enrollment_date, and grade.

Question No.1

You are required to insert one (1) record into each table with appropriate data Using SQL Queries.

Question No. 2

Read the statements in column 1 and write the corresponding SQL query for each statement in column 2.

Statement Write SQL Query Here.


List all students born between 2000 and 2005
(follow the format YYYY-MM-DD).

Find all courses in the 'Computer Science' or


'Mathematics' departments.

List courses with more than 3 credits, ordered by


credits in descending order.

List students enrolled in more than 3 courses.

Find students who are enrolled after January 31,


2023.

Note: You are required to provide only the SQL queries necessary to perform all the operations mentioned above.

Lectures Covered: This assignment covers Lectures 20 to 30.

Deadline: Your assignment must be uploaded or submitted on or before the due date: 24th June, 2025.

CS403 - Assignment no. 2

You might also like