Midterm Assignment V1
Midterm Assignment V1
SYSTEMS
Course code COS122
Assignment title Midterm Assignment
Release date 18/05/2023
Submission deadline 31/05/2023 23:59
Report date 01/06/2023
Assignment weighting 60% of Midterm
Lecturer’s name Le Ngoc Hieu
ASSESSMENT INFORMATION
This assignment is designed to assess the following learning outcomes:
CLO1: The students understand Database and determine database’s elements; they
can design a Relational Database as request.
CLO2: The students understand about Structural Query Languages and Integrity
Constraints; They know how to apply them into the data’s requirements.
CLO3: The students understand and know how to design Database in detail and
Normal Forms.
CLO4: The students understand about Index and View of Database.
CLO5: The students understand about Stored Procedure, Function, Triggers and
some specific issues like user roles, DBMS security.
This assignment is a group assignment, each group would take 3 to 4 students.
1|Page
TASKS & REQUIREMENTS
(Student please carefully read the tasks’ requirements, and discuss further with your
teammates and decide what to do)
First, students’ group must depend on the below formula to calculate the group code,
this code will be used for your assignment.
Examples: We have a group of 3 students, their student’ IDs are 201415161, 201415162,
201415163. With the above formula, we have:
X=1+2+3=6
CODE = (X mod 7) + 1 = (6 mod 7) + 1 = 7.
This group will have code 7.
REQUIREMENTS:
- Each group must have these following documents:
o 01 microsoft-word document is for reporting, this is the main document
including introduction of the assignment, business flow… and the works,
the results of the group. The results can be both scripting sql and
screenshots. Please note, in this file, you must declare all the students’ info,
and how your team cooperate.
o 01 pdf document is the conversion of the above word document.
o SQL files include
1 SQL scripting file for DDL
1 SQL scripting file for DML
1 SQL scripting file for Stored Procedures (if any)
1 SQL scripting file for Views (if any)
1 SQL scripting file for Functions (if any)
1 SQL scripting file for Triggers (if any)
o 01 PPT file is for reporting, presenting to the teacher.
- Each table of the database, you must fulfill with these actions: INSERT, UPDATE,
DELETE. All tables must have index / keys. Must follow the ER Model.
- You must complete your assignment by using all these elements of database: view,
stored procedure, function, trigger.
- You must build some reports as requests with the above elements; besides, you
need to order the results with descending or ascending.
- Each group must complete at least 10 queries for your assignment and show why
and how you do them.
2|Page
CODE 1 – REAL ESTATE BUSINESS
Project requirements:
1. E-R Model
Analyze and construct an E-R diagram representing the conceptual design of
the database for the above business.
At minimum you must include all the entities and relationship sets implied by
this handout. You may go beyond the minimum. Remember that the manager
who defined the specifications is not computer literate so the specifications
should not be viewed as necessarily being precise and complete.
Be sure to identify primary keys, relationship cardinalities, etc.
You need to build the model with at least 5 entities.
2. Relational Model
After creating an initial relational design from your E-R design, refine it based
on the principles of relational model we have studied in the course.
Create and deploy the relations in SQL Server.
3|Page
6) Find the real-estate property which are possessed by the greatest number of
investors.
7) Find all the real-estate properties which are possessed by 2 investors or more
than 2 investors.
8) Find all investors who have the greatest number of real-estate properties in the
company products’ list.
9) Find the employee who has the greatest sale amount.
10) Find the street with the greatest number of real-estate properties.
11) Input the customer’s name, then show the information of all customers with that
name. The output may include the customer’s info stored in the company’s
system; these may go along with the info of their own real-estate properties.
12) Input the agency office’s name, then show the information of all agency offices
with that name. The output may include the agency’s info, the number of
customers and investors who are involved in this agency.
13) Input the agency offices’ name, then show the information of all agency offices
with that name. The output may include the agency’s info, all the real-estate
properties which are involved in this agency.
14) Input the customer’s name, then show the information of all customers with that
name. The output may include customer’s info with the transactions detail of
the real-estate properties.
15) Input the customer’s name and investor’s name, then show the information of
the transaction between them. The output may include customer’s name,
investor’s name, real-estate name, time of sale, and agency’s info.
16) Input the info of square meters, location, and price, then show the information
of all real estates that fit this filter. The info may be product’s info, investor’s
info, constructor’s info, agency’s info, and the list must be ordered with the
price descending.
17) Input the customer’s name, then show all the real estates which are possessed
by these customers.
18) Input the agency’s office name, then show the info of customers, number of real
estates of each customer, the customer who owns most properties, and least
properties. The list needs to be in descending order of properties qty.
19) Input the from-date and to-date, then show the quantity of transactions of all
agency offices during that time.
20) Input the customer’s name and real estate’s ID. Show the info of employee,
investor, and agency office which are related to the customer and the property.
21) Input the investor’s name. Show all the properties of these investors with the
amount of sale and not yet sell.
22) Input the info of employee, investor, customer. Show the detail info of the
transactions related to the input info.
23) Input the employee info. Show the personnel info including the salary info.
24) While adding a new customer, this new customer must be older than 16 years
old, and all other fields cannot be empty.
25) While adding a new real estate property, this property must be invested by an
investor.
4|Page
26) While adding a new real estate transaction, the real estate property must not be
owned by anyone or must be posted by the owner. This transaction must be
followed and handled by one employee for both sale and customer care.
27) While adding a new employee, the employee must belong to an agency office
or a department, and other fields cannot be empty.
28) The possessing info of the real estate properties must be changed and
automatically updated when the transaction of the properties successfully
complete.
29) The real estate properties can be deleted if they do not any info about investor,
owner, and employee handling.
30) While updating employee info, cannot update the employee with the status of
retired or suspended or quitted.
31) Generate the data for report which is about daily transaction of each agency
office.
32) Generate the data for report which is about weekly transaction of each agency
office.
33) Generate the data for report which is about monthly transaction of each agency
office.
34) Generate the data for report which is about quarterly transaction of each agency
office.
35) Generate the data for report which is about yearly transaction of each agency
office.
36) Generate the data for report which is about employee statistic of each agency
office. This report may be limited from time to time. It also includes the max
number of employee and minimum and other personnel statistic.
37) Generate the data for report which is about sale statistic for each employee in a
agency office.
38) Generate the data for report which is about the statistic of real estate properties
for each investor. This may include the maximum and minimum amount of
transaction, the buildings, the apartments, the flats…
39) Generate the data for report which is about the place with greatest number of
transactions.
40) Generate the data for report which is about the statistic of each customer / each
investor / each owner.
5|Page
CODE 2 – THEATRE PERFORMANCE MANAGEMENT
Description:
A theatre center celebrates art performances like opera, comedy drama, music
performance, music concert, or any other events. The management board of this theatre
want to control and manage well all activities and events, to enhance management and
save time and cost. You can further study and research some theatre in your location and
build up a database for this theatre according to what you understand.
Project requirements:
1. E-R Model
Analyze and construct an E-R diagram representing the conceptual design of
the database for the above business.
At minimum you must include all the entities and relationship sets implied by
this handout. You may go beyond the minimum. Remember that the manager
who defined the specifications is not computer literate so the specifications
should not be viewed as necessarily being precise and complete.
Be sure to identify primary keys, relationship cardinalities, etc.
You need to build the model with at least 5 entities.
2. Relational Model
After creating an initial relational design from your E-R design, refine it based
on the principles of relational model we have studied in the course.
Create and deploy the relations in SQL Server.
4. Queries:
You should run several testing queries to see that you have loaded your database in the
way you intended. The queries listed below are those that the director of the company
wants turned in. They may provide further hints for your database design.
1) Find the info of the performance event.
2) Detect the ticket is true or not, valid, or not.
3) Report the number of tickets which are not sold out.
6|Page
4) Find out and give out the info of the performance program which are most
crowded in the month.
5) Find the performance program which has the most sessions.
6) Find the artist who joins as most characters / performers in a session of the
performance program.
7) Find the performance program which has the most artists joining.
8) Find the performance program which has the longest duration.
9) Find the work / performance session which is performed for most times.
10) Find the work / performance session which lasts longest.
11) Show all the info of the ticket sales for each performance program.
12) Input the ticket serial no. Show the info of the seat, seat location, ticket type,
price, performance program detail.
13) Input the performance program ‘s name and time. Show the detail info of the
performance program which is celebrated during that time. The info may include
the artists’ info, works’ info…
14) Input the work’s name / song’s name … Show the info of all performance
programs which are related to this work, the detail info of the work in the
performances.
15) Input the artist’s name. Show the info of the performances that these artists
joined. The output may include the role, the song, or the work they have played
in these performances.
16) Input a month (from 1 to 12). Show all the performance programs of the months.
17) Input a number. Show info of all performance programs which the number of
sold tickets are greater than or equal the input number. The list must be in
descending order.
18) Input the info of the performance program. Show the statistic of selling tickets
of these programs.
19) Input the info of the artist, info of the program. Show the info of these artists
who joined these programs. The info may include the salaries of these artists.
20) Input a date. Show the info of the programs and selling tickets info of which are
hold on the date.
21) While adding a new ticket, the ticket must have full info: serial no, seat info,
location, ticket type, price, and the performance program info.
22) While adding a new performance program, it must include at least 5 performing
sessions.
23) While adding a new artist, the artist must have clear info like genre, specialized,
etc.… all fields must be filled.
24) While adding performance details for a program, there is no duplication of a
performing session.
25) While adding a new work / song, this work must be declared clearly and belong
to an author or group of authors.
26) While adding a new performing session, the session must have a work / song /
play which is declared clearly.
27) While editing a performance program detail, it is not allowed to put 02 same
performing sessions in that program.
28) Generate the data for report which is about the statistic of each performance
program.
7|Page
29) Generate the data for report which is about the statistic of daily, weekly, and
monthly ticket sale.
30) Generate the data for report which is about the statistic of quarterly ticket sale.
31) Generate the data for report which is about the statistic of yearly ticket sale.
32) Generate the data for report which is about the best performing sessions. The
result should be in descending order of like.
33) Generate the data for report which is about the best performing artists. The result
should be in descending order of like.
34) Generate the data for report which is about the income of artist in a month that
they have earned in this theatre. The result should be in descending order of like.
35) Generate the data for report which is about the performance programs in the
month. Which programs are most like, most celebrated? The list result must be
in ascending order.
36) Generate the data for report which is about the revenue, profit and loss of each
performance program.
37) Generate the data for report which is about the most like performance program
in the year.
8|Page
CODE 3 – ENTERPRISE HUMAN RESOURCE MANAGEMENT
Description:
An enterprise which is about the construction, trading, and services. The manager of this
enterprise wants to build up an information system of management and controlling all
projects and human resources with these projects. The projects of this enterprise may be
construction project, trading project or servicing project. Each project may involve many
people and need some resources. The manager wants to clarify and make everything easier
about projects including personnel, salaries, effectiveness, administration, and other
relevant issues. Build a database that can adapt the manager and his management requires.
You can further check and study about the actual business around you, the things
surrounding for your database design.
Project requirements:
1. E-R Model
Analyze and construct an E-R diagram representing the conceptual design of
the database for the above business.
At minimum you must include all the entities and relationship sets implied by
this handout. You may go beyond the minimum. Remember that the manager
who defined the specifications is not computer literate so the specifications
should not be viewed as necessarily being precise and complete.
Be sure to identify primary keys, relationship cardinalities, etc.
You need to build the model with at least 5 entities.
2. Relational Model
After creating an initial relational design from your E-R design, refine it based
on the principles of relational model we have studied in the course.
Create and deploy the relations in SQL Server.
4. Queries:
You should run several testing queries to see that you have loaded your database in the
way you intended. The queries listed below are those that the director of the company
9|Page
wants turned in. They may provide further hints for your database design.
1) Find all employees who are from 25 to 30 years old.
2) Find the projects with most involved employees.
3) Display all the employees of each project.
4) Find all employees who are attending 02 projects and above at the same time.
5) Find all employees with their spouse working together in the company.
6) Find all employees with their spouse working together in the same project.
7) Find employees whose spouses are also employees of the company.
8) Display customer information and the projects they require. Sort by number of
projects.
9) Display the number of employees of the departments.
10) Show projects that are paused or not continuing.
11) Display the information of the department heads, of the company.
12) Displays the number of working days in the month of the employee.
13) Pass in employee names. Display information of the employee, the department
the employee is working on, the branch, the project that the employee is
participating in.
14) Transmit at any time. Display information about projects completed at the
above time.
15) Pass in the customer name. Display information about projects that customers
require with the company. Number of completed, postponed and canceled
projects.
16) Communication in the department. Display information of the department,
information of the head of the department and information of the employees.
17) Enter the employee name and month information. Display employee
information, number of working days, number of completed projects in the
month, company spouse, employee's current salary.
18) Pass in the project name information. Display project information,
management department information, management staff information, project
expiration date, cost of each project.
19) Pass in the branch name. Display branch manager information, number of
employees in branch, branch projects.
20) Pass in time information. Outputs a list of projects whose projects have the
above expiration date.
21) Pass in monthly information. Total project is canceled or stopped. Total losses
incurred by the company.
22) Pass in monthly information. Total project completed. Profits earned by the
company.
23) Add a new project. A project must have 1 or more customers requesting,
projects must have clear costs, each project can be handled by 1 or more
departments, one or more parts or the whole project. A project must have at
10 | P a g e
least 5 employees involved. Each project is managed by only one branch. Each
project must have a minimum cost of $1000.
24) Add a new department. Each department must have a head of the department,
the department must have at least 10 employees, including the head of the
department.
25) Add a new branch. Each branch must have at least 5 departments. Each branch
must have 1 head (Branch Head) to manage.
26) Add information of an employee. An employee belongs to only one branch,
the employee must be over 18 years old, other information cannot be left blank.
27) Add customer information. An added customer must complete the personal
information, contact information.
28) Edit employee salary information. Employees must complete at least 5 projects
a month, no project above the employee's salary grade will be increased by
$100.
29) Edit monthly allowance. If the employee has international certifications related
to the job. The company will reward $50 for 1 certificate. If there is a wife
thinking of maternity, the company will provide an extra $100 a month.
30) Edit the information of a project. A project is changed status from in progress
to on hold when the specified time is over. A project becomes aborted when the
project is 6 months past its deadline and is on hold.
31) Edit project time. A project is timed if and only if it is in either in progress or
on hold.
32) Generate a report of the number of projects per day for each branch.
33) Generate quarterly project quantity reports for each branch.
34) Generate a report of the number of projects by year of each branch.
35) Generate monthly revenue reports for each branch.
36) Generate quarterly revenue reports for each branch.
37) Generate annual revenue reports for each branch.
38) Generate a report of the number of employees of each branch. Number of
projects each employee handles per month. The employee with the highest
number of completed projects and the lowest number of projects.
39) Generate statistical reports of completed, in-progress, postponed and canceled
projects.
40) Generate statistical reports of each client's projects. The client has the highest
and lowest number of projects.
41) Generate statistical reports on the projects of the branch, the branch with the
highest number of completed projects, the branch with the most canceled and
postponed projects.
42) Generate reports about the company's potential customers.
11 | P a g e
CODE 4 – UNIVERSITY MANAGEMENT
Description:
A university needs to build a database about the school management. The school needs to
manage, control, and handle the information of students, instructors, faculties,
departments, buildings, offices, campus, etc.… Please refer to HUTECH or other school
to study and understand about this management business, and then build the database
according to what you get.
Project requirements:
1. E-R Model
Analyze and construct an E-R diagram representing the conceptual design of
the database for the above business.
At minimum you must include all the entities and relationship sets implied by
this handout. You may go beyond the minimum. Remember that the manager
who defined the specifications is not computer literate so the specifications
should not be viewed as necessarily being precise and complete.
Be sure to identify primary keys, relationship cardinalities, etc.
You need to build the model with at least 5 entities.
2. Relational Model
After creating an initial relational design from your E-R design, refine it based
on the principles of relational model we have studied in the course.
Create and deploy the relations in SQL Server.
4. Queries:
You should run several testing queries to see that you have loaded your database in the
way you intended. The queries listed below are those that the director of the company
wants turned in. They may provide further hints for your database design.
1) Displays student information in a class.
2) Displays information about courses that are open in the current semester.
12 | P a g e
3) Display information about branches of the school.
4) Displays the number of teachers in each subject.
5) Find teachers who teach more than 3 subjects during the semester.
6) Display information about all students in any class.
7) Displays a student's timetable.
8) Display classes with sufficient number of students.
9) Find instructors who only teach one subject.
10) Display information about students with the highest scores in each period.
11) Enter subject information. Display subject information, information of
lecturers, number of students of each class.
12) Enter the branch name. Display information about subjects, taught here.
13) Enter the exam name and time. Displays the subjects included in the list, exam
time, exam date, information about the instructors who administer the exam and
the subject of the exam.
14) Enter student name or student number, exam name. Display information about
student's exam schedule in the semester, number of times, scores of each
subject.
15) Enter student ID. Displays subject information that students participate in.
16) Enter the student number. Displays aggregated transcripts for all semesters.
17) Enter student code, semester code. Displays transcript information of periods.
18) Enter teacher code, semester code. Display information about classes by that
teacher, the number of students in each class.
19) Enter the course code. Display information such as subject name, number of
students, subject type (Theory, practice, both), number of credits.
20) Pass in the branch name. Display customer information, information on the
amount of real estate of customers, who owns the most real estate, who owns
the lowest real estate. Sort by number of properties descending.
21) Pass in faculty information, semester code. Output the amount the instructor
received.
22) Enter student code, semester. Output the amount to be paid by the student.
23) Student communication. Displays the number of credits students have
completed during their studies.
24) One more student. A student belongs to only one class. If the birth already
exists in a class, no further import is allowed. A student can study up to 3
faculties.
13 | P a g e
25) Enter scores for students. Scores cannot be left blank. Score on a 10-point
scale, negative scores are not allowed.
26) Add an instructor. A faculty member can be in many different departments.
Lecturers have 1 type of permanent lecturers, visiting lecturers. The amount
that visiting faculty receive through each credit is only half that of a permanent
instructor.
27) Add information about a subject. Each subject has many students participating,
each subject can be taught by 1 or more teachers at 1 or many different branches
of the school. There are two types of subjects, general subjects managed by the
basic board, and specialized subjects managed by each faculty.
28) Add student exam schedule information. Each subject has 1 exam schedule
each semester.
29) Edit points. Score cannot be blank, score cannot be negative.
30) Edit students' timetables. Edit exam date, exam schedule, exam time. The exam
date and time must not coincide with another exam date and time.
31) Close a subject. The course is closed when there are not enough numbers. At
least 30 students per class.
32) Generate the school's annual number of new students.
33) Generate the school's annual graduation report.
34) Generate a report of the school's scientific research achieved every year.
35) Generate school semester revenue reports.
36) Generate annual school revenue reports.
37) Generate salary reports for each faculty member.
38) Generate a report of the passing rate statistics of all the students' subjects.
Which subject students fail the most, which subject has the highest pass rate.
39) Generate statistical reports of students with excellent academic performance.
40) Generate a report of each student's training score.
14 | P a g e
CODE 5 – SECONDARY SCHOOL MANAGEMENT
Description:
A secondary school wants to digitalize all the management information. Build a database
for this school. A secondary school may need to manage pupils, teachers, teaching
materials, subjects, parents, … Let find a secondary that you know, refer it to define the
business and build it up.
Project requirements:
1. E-R Model
Analyze and construct an E-R diagram representing the conceptual design of
the database for the above business.
At minimum you must include all the entities and relationship sets implied by
this handout. You may go beyond the minimum. Remember that the manager
who defined the specifications is not computer literate so the specifications
should not be viewed as necessarily being precise and complete.
Be sure to identify primary keys, relationship cardinalities, etc.
You need to build the model with at least 5 entities.
2. Relational Model
After creating an initial relational design from your E-R design, refine it based
on the principles of relational model we have studied in the course.
Create and deploy the relations in SQL Server.
4. Queries:
You should run several testing queries to see that you have loaded your database in the
way you intended. The queries listed below are those that the director of the company
wants turned in. They may provide further hints for your database design.
1) Make a list of students for each class
2) Display the timetable for each grade.
3) Displays a list of the best students in each class.
4) Displays a list of 7th and 9th grade math teachers.
15 | P a g e
5) Shows teachers who only teach more than 2 school subjects.
6) Display information of homeroom teachers of classes.
7) Displays tuition information for the current semester.
8) Displays a list of students who have completed tuition fees.
9) Displays the test scores of any class.
10) Pass on the date of birth. Displays a list of students with the same birthday as
above.
11) Pass in class information. Display information about the homeroom teacher
and information about the students in the class.
12) Enter class and semester information. Display the list of exam schedule of the
class in the semester as above.
13) Pass in the customer name, and time. Display information with which time the
customer has purchased the property.
14) Transmit the name of the customer, the investor. Display transactions of two
parties including: customer name, investor name, real estate name, time,
branch.
15) Enter the desired area, location (area), price information. Display information
of real estate, information of investor and management branch, sorted by price
ascending and descending.
16) Enter customer name information. Show properties that this person co-owns.
17) Pass in the branch name. Display customer information, information on the
amount of real estate of customers, who owns the most real estate, who owns
the lowest real estate. Sort by number of properties descending.
18) Pass in transaction time information. Output transaction number at that time in
all branches.
19) Transmit customer name, real estate code. Output information about
employees, investors and branches that made transactions.
20) Transmit investor information. Output the number of owner's real estate
without owner (not sold or traded).
21) Add a class timetable. A teacher cannot teach in two classes at the same time.
22) One more student. A student belongs to only one class.
23) Add a layer. A class should not exceed 45 students. A class must have a
homeroom teacher.
24) Add a teacher. A teacher must teach at least one subject.
25) Add a subject. A subject must have at least 3 teachers.
26) Add an exam schedule. Each exam must be held in different exam rooms.
27) Edit student information with birthday 10 to 20
28) Edit timetable information and exam schedule.
29) Delete a student's information.
30) Delete a timetable information.
31) Generate monthly school revenue reports.
32) Generate a report of teachers' salary statistics.
33) Generate statistical reports on the achievements of all grades (Proportion of
students going to class, good students, good students).
34) Create a report of the achievement statistics
35) Generate quarterly revenue reports.
36) Generate annual revenue reports.
16 | P a g e
37) Generate a school teacher count report. The number of subjects that the teacher
taught, the total number of lessons, the number of working days, the number of
days off.
38) Create a report of salary statistics of teachers and officials in the school.
39) Generate subject statistics reports by teachers who have the best performance.
40) Generate annual report of the number of graduates, the number of graduation
points of each student.
17 | P a g e
CODE 6 – LIBRARY MANAGEMENT
Description:
A library center wants to manage books, magazines, CDs, … and other materials,
employees, facilities, audiences… Build a database that can help the library running better
and more efficiency.
Project requirements:
1. E-R Model
Analyze and construct an E-R diagram representing the conceptual design of
the database for the above business.
At minimum you must include all the entities and relationship sets implied by
this handout. You may go beyond the minimum. Remember that the manager
who defined the specifications is not computer literate so the specifications
should not be viewed as necessarily being precise and complete.
Be sure to identify primary keys, relationship cardinalities, etc.
You need to build the model with at least 5 entities.
2. Relational Model
After creating an initial relational design from your E-R design, refine it based
on the principles of relational model we have studied in the course.
Create and deploy the relations in SQL Server.
4. Queries:
You should run several testing queries to see that you have loaded your database in the
way you intended. The queries listed below are those that the director of the company
wants turned in. They may provide further hints for your database design.
1) Display titles of books, magazines and newspapers with the author's name Jack.
2) Show titles published after 2012.
3) Display titles of books, magazines, newspapers with page numbers in the range
of 80 - 160 pages.
4) Display the list of overdue customers.
18 | P a g e
5) Display information about customers who borrow from 3 to 5 books.
6) Find employees whose shifts are Mondays, Wednesdays, and Fridays, starting
from 7 a.m. to 12 noon.
7) Find information about customers who borrow books by an employee named
Mike.
8) Display of the staff.
9) Displays information about books still in the library.
10) Find the most borrowed CDs.
11) Employee communication. Display full information, shift, employee's salary.
12) Transmit any time. Displays information about customers who have not yet
returned borrowed publications.
13) Communication of customer information. Displays information about
borrowed publications, borrowed time, return time, and status.
14) Enter the name of the work, year of publication. Displays information about
publications with similar names and the same year of publication.
15) Pass in the publication name. Output the current amount, the estimated time
can be borrowed.
16) Pass in employee information. Display information about customers who are
borrowed publications by staff, information about publications, time to return
these publications.
17) Transmisson in
18) Transmit author, year of publication, price. Displays information on which
publications can be borrowed with the above information.
19) Cast into category. Displays information about the publications that can be
borrowed, the prices of the publications.
20) Enter the shift. Displays employees with corresponding shifts.
21) Enter employee information. Displays information on the days employees have
been to work, tardy and leave of the month.
22) Add a customer data. This customer must be over 15 years old, all fields cannot
be empty.
23) More workdays for an employee. Employees will be counted as late if they are
more than 30 minutes late compared to the regulations, will be counted as
thinking if they are late more than 3 hours.
24) Add data to a publication. The publication information cannot be blank. Each
publication must be at least 5 in number.
25) Add an employee. Each employee only works a maximum of 3 days a week.
26) 1 more shift. A work shift lasts at least 5 hours. At least 1 employee per shift.
27) Edit publication information. Each item must have at least one different field,
except for the quantity field.
19 | P a g e
28) Edit a customer's information. Customers if the number of times of late return
of books is more than 5 times. The maximum number of books that can be
borrowed will be reduced.
29) Delete a publication information. A publication can only be deleted when all
of the publications are paid for.
30) Generate a report on the number of publications that have been borrowed the
most.
31) Generate a lead count report.
32) Generate a loan amount report for each day in any month.
33) Generate monthly revenue reports.
34) Generate quarterly revenue reports.
35) Generate annual revenue reports.
36) Generate employee count reports. The number of transactions each employee
handles per month. The employee with the highest number of transactions and
the lowest number of transactions.
37) Generate statistical reports of customers who often fail to pay on time.
38) Generate statistical reports on the most popular publication categories.
39) Generate employee statistics reports. The employees have each employee's
number of days to work, the employees are late and how many times a month
they think.
40) Generate salary statistics reports for employees.
20 | P a g e
CODE 7 – CHAMPION LEAGUE MANAGEMENT
Description:
Project requirements:
1. E-R Model
Analyze and construct an E-R diagram representing the conceptual design of
the database for the above business.
At minimum you must include all the entities and relationship sets implied by
this handout. You may go beyond the minimum. Remember that the manager
who defined the specifications is not computer literate so the specifications
should not be viewed as necessarily being precise and complete.
Be sure to identify primary keys, relationship cardinalities, etc.
You need to build the model with at least 5 entities.
2. Relational Model
After creating an initial relational design from your E-R design, refine it based
on the principles of relational model we have studied in the course.
Create and deploy the relations in SQL Server.
4. Queries:
You should run several testing queries to see that you have loaded your database in the
way you intended. The queries listed below are those that the director of the company
wants turned in. They may provide further hints for your database design.
1) Find information about players aged 18-25
2) Find information about players under the age of 30.
21 | P a g e
3) Display information of sponsors.
4) Find the team with the most achievements.
5) Displays information about the teams that have won the championship in the
last 5 years.
6) Find the team with the most impressive results after 5 rounds.
7) Display information of first leg pairs.
8) Display information about the second leg pairs.
9) Show fixtures of the entire season.
10) Displays a list of referees.
11) Enter team information. Display list of players, coaches.
12) Enter team information. Displays the team's schedule.
13) Transmit match information. Display schedule information, results,
information about referees.
14) Transmit team information, time. Display the official match lineup, the team's
reserve lineup.
15) Player communication. Display team information, playing position, number of
times scored.
16) Information transmission of matches and rounds. Show results, referee,
number of red cards, yellow cards.
17) Referee communication. Displays a list of participating matches.
18) Broadcast round information. Displays a list of matches.
19) Broadcast season time information. Display the list of standings of the teams.
20) Broadcasting stadium information. Displays information about the matches
taking place.
21) Add players. A player can only be on one team.
22) 1 more stadium. A stadium must be the home ground of a football team.
23) One more match. Each team only met twice during the tournament, a match
with at least 4 referees.
24) One more round. A round must have at least 3 pairs competing.
25) One more season. A season must have at least 10 rounds.
26) Add a sponsor. A sponsor must sponsor throughout the tournament. Sponsors
must contribute at least $1000 per season.
27) More ticket information. One ticket is only valid for one match in one stadium.
28) More information about a team. A team must have at least 5 players.
29) Edit game time. The time of the match must not coincide with the time of the
other match.
30) Edit red card number information, yellow card number. A player receiving
more than 1 red card will be banned from playing for 2 matches, 2 yellow cards
will equal 1 red card.
22 | P a g e
31) Generate a report of the number of tickets in any match.
32) Generate a report on the number of tickets for a round..
33) Generate revenue reports after each match.
34) Generate revenue reports after each round.
35) Generate revenue reports for each season.
36) Generate a statistical report listing the players receiving the card. The players
who received the most yellow and red cards.
37) Generate statistical reports of the most popular matches later of the season.
38) Generate a statistical report listing the tournament's top scorers.
39) Generate a statistical report on the sponsorships received by the tournament.
40) Generate statistical reports of the matches with the most goals.
23 | P a g e
CRITERIA FOR ASSESSMENT
Please refer the rubrics for detail assessment.
WORD COUNT
Font Times New Roman size 13.
The final project must be in a PDF format, a file power point. The file name must be
as follows:
All work submitted after the submission deadline without a valid and approved reason
(see below) will be given a mark of zero.
Students MUST keep a copy and/or an electronic file of their assignment and print
screen/ capture the screen to prove that they have uploaded the assignment
successfully on time.
THE END
24 | P a g e