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

Assignment 2

This document outlines an assignment for a database systems course. Students will work in groups to design, implement, and manipulate a database corresponding to a real-world system. They must choose a system to study, design an entity-relationship model and relational schema, create the database in SQL Server, insert data, and write queries, functions, triggers, and procedures demonstrating skills like joins, subqueries, and aggregates. Deliverables include .sql files containing the database design and code, along with a final report describing the project.

Uploaded by

Hiệp Bùi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Assignment 2

This document outlines an assignment for a database systems course. Students will work in groups to design, implement, and manipulate a database corresponding to a real-world system. They must choose a system to study, design an entity-relationship model and relational schema, create the database in SQL Server, insert data, and write queries, functions, triggers, and procedures demonstrating skills like joins, subqueries, and aggregates. Deliverables include .sql files containing the database design and code, along with a final report describing the project.

Uploaded by

Hiệp Bùi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

DBI202: Database Systems

Assignment
I. Description:

As you know, databases today are essential to every business. Whenever you visit a major Web site —
Google, Yahoo!, Amazon.com, or thousands of smaller sites that provide information — there is a
database behind the scenes serving up the information you request. Corporations maintain all their
important records in databases.

The objective of this project is to learn how to design, implement and manipulate a database in SQL
Server corresponding to the requirements of a system that you choose.

II. Requirements:

You should work in groups on this project. The idea is to choose a subject (among the list of subjects
provided by the teacher) for your group. You have to study how the system works, then design and
implement a database for this system.

In order to do this project, you should do the following steps :

1. Choose a system to study


Try to study how the system works and describe in details the system : the entities and their
functions in the system, the information needed for each entity, the work flows of the system.
2. Propose an Entity / Relationship model for the system
3. Convert the ER model to relational model with corresponding relations and functional
dependencies.
4. Create in SQL Server a database corresponding to your relational model. You should create
your database and the corresponding tables by using SQL statements. The statements for the
creation of the database and the corresponding tables should be saved in a createDB.sql file.
5. Create constraints of at least 3 different kinds by using « alter table » statements and save
these statement in a constraints.sql file.
6. Insert data in your database (at least 10 records for each table). The statements for the
insertion should be saved in a insert.sql file.
7. Write at least 2 query for each of the following requirements. All queries should be saved in
the queries.sql file. Note that the created queries must be useful and significant in your system.
a. Query using inner join.
b. Query using outer join.
c. Using subquery in where.
d. Using subquery in from.
e. Query using group by and aggregate functions.
8. Write at least one function and save into the function.sql file. Note that the created function
must be useful and significant in your system.
9. Write at least one trigger and save into trigger.sql file. Note that the created trigger must be
useful and significant in your system.
10. Write at least one procedure and save into procedure.sql file. Note that the created procedure
must be useful and significant in your system.
III. Submission:
You should zip all files of your project into DBI202Project_CC_NNN_RN.zip file and submit on the CMS
system where CC is your class, NNN is your fullname and RN is your roll number. In your submission,
you should have :

- A final report in the format .docx or .pdf which describes in detail all your steps.
- All .sql files of your project.

You might also like