ISYS6169 - T0206 Database Systems: Assignment Case
ISYS6169 - T0206 Database Systems: Assignment Case
Assignment Case
ISYS6169 | T0206
Database Systems
Information Systems XXXX-ISYS6169-XXXX-XX
Tabel Relasional
Relational Table
The Externational
The Externational is an famous eSport competition from game MoTa 2 that being held every
year. The competition provides a lot of matches transaction including information of the participant
(teams, and players). Here is the Entity Relationship Diagram (ERD) of matches in The
Externational:
Page 1 of 4
180917 FM-BINUS-AA-FPT-66/R7
Soal
Case
1. Create a table named ‘leaderboard’ with the following descriptions :
(create table, like, between)
Column Name Data Types Length Description
rank_id CHAR 5 Primary key and rank_id must be
started with ‘RNK’ and followed by 2
digits of number.
Example: RNK01,
Cannot be empty.
team_id CHAR 5 Foreign key, references to table named
“team” on “team_id” column
rank INT Cannot be empty.
Must be between 1 and 8 (inclusive)
prize BIGINT Cannot be empty.
2. Add new column on team_detail table named is_captain with int data type and add a
constraint on team_detail table to validate that is_captain must be between 1 to 0 (inclusive).
(alter table, add, add constraint)
Page 2 of 4
180917 FM-BINUS-AA-FPT-66/R7
position_id position_name
POS06 Coach
4. Display player_name, and joined_date for every player that joined their team on September
2019.
(like)
5. Update Invictus Gaming score into 2, and Vici Gaming score into 0 for match with ID
“MT010”
(update, like)
Before update :
Page 3 of 4
180917 FM-BINUS-AA-FPT-66/R7
After update:
Page 4 of 4