Ask DBMS Expert


Home >> DBMS

Enterprise Database Systems Oracle Assignment

Objectives & Structures:

This part provides experience in designing a small database including both logical and physical designs. Beside the main tool SQL Developer, you also practice on Data Modeler. You are going to create a database to manage the Olympic Game information, Olympic Game Database (OGDB).

The OGDB stores data related to all Olympic Games (OGs). There are several types of OGs, including but not limited to winter, summer, special, youth and senior. For each Olympic Game (OG), the OGDB stores data related the year and the name of the country that the OG taken place. It also stores the URL of the website for an OG if there is one. Except for the first OG, a country is eligible to host an OG if it has participated in an OG before.

The OGDB stores the details of the athletes and the countries participated in the OGs. Data about each country participated in the OGs, including the name of the country, and a three-character identification code. For example, the code for Australia is AUS, India is IND and China is CHN etc. For each athlete, the OGDB stores the name, gender, date of birth and email. An athlete can have multi-nationalities.

There are many individual as well as team-based sport events of different sport categories in each OG. Sport events are classified into different sport categories. Sport events can also be classified based on the gender; an event can be a male, female or mixed event. For example, tennis men double is a team-based, male type event with event title "Double" in the "Tennis" sport category.

In each OG, an athlete can be a representative of only one country. However, an athlete can represent different countries in different OGs. For example, Jing Chen participated in three summer Olympic Games. She was representing China in the 1988 and 1996, however, she was representing Taiwan in 2000 due to her nationality changed.

OGDB contains the data of all the contestants competing in each event including those did not win any medal. A contestant can be an individual-representative or a team-representative. Each event will have at least 2 contestants (team/individual based) competing. Winners of the competition will be awarded with gold, silver or bronze medals.

For a team-based event competition, each member of the winning team will receive a medal.

In some years, the Olympic Games were cancelled due to wars. For example, the Summer Olympics of 1944 in United Kingdom, and 1940 in Japan were cancelled due to World War II. If an OG was cancelled, the OGDB will only store the year and country where the game supposed to take place. No data related to athletes and event competitions of that game were included.

The OGDB will allow searching for event results based on criteria such as whether the event is by individual or by team; whether the event is a female, male or mixed competition, the title of sport, the title of the event, etc. The database can also be used for calculating statistics such as number of medals won by each country and each athlete.

There are four tasks of the assignment -

Task 1:

You need to create a database schema called og_jcxxxxxx to store all the database objects for this assignment. Firstly, it consists of the creation of a tablespace named ogts_jcxxxxxx where jcxxxxxx is your jc username. The tablespace should have the initial size of 100 MB and can be extended if required. Secondly, you need to create a user account named og_jcxxxxxx and grant appropriate privileges to the user for creating the database objects. The default tablespace of og_jcxxxxxx must be ogts_jcxxxxxx. In addition, the user og_jcxxxxxx can also have rights to create users and allow them to connect to the database. You need to follow the principle of least privilege when granting privileges.

TASK 1 - SUBMISSION FILE(S):

Firstly, create a folder named jcxxxxxx (your jc number, for example, jc165984) to store all of your files in this assignment-Part 1.

For this task, you have to produce a script called A1Task1.sql which contains SQL statement(s) for

- creating the ogts_jcxxxxxx tablespace

- creating the og_jcxxxxxx user

- granting appropriate privileges to the og_jcxxxxxx user

And store this file into your folder jcxxxxxx.

Task 2:

You need to use Data Modeler to model the OG database. It should consist of a logical model, a relational model and a generated DDL script. Here is a suggestion of OG entities.

TASK 2 - SUBMISSION FILE(S):

Produce a model named og_jcxxxxxx and store it in the folder jcxxxxxx. Data Modeler will automatically create a folder named og_jcxxxxxx for you.

The model should consist of a logical model and a relational model.

In addition, you should also produce:

- A generated script file named A2Task2.sql; store it in the same folder jcxxxxxx

- An E-R diagram named ER_jcxxxxxx.png; store it in the same folder jcxxxxxx

Task 3:

You need to modify the script file A2Task2.sql to complete additional constraints and save it as A3Task3.sql. In addition, you need to connect the Oracle DB server as og_jcxxxxxx user and then execute A3Task3.sql to create the required tables.

TASK 3 - SUBMISSION FILE(S):

Produce a script called A1Task3.sql (a modified version of A1Task2.sql) and put it in the folder jcxxxxxx.

Task 4:

Loading Data, Creating Sequences

You have to use the supplied file Ass1_data.zip to construct INSERT statements to load the data into the tables. In SQL Developer, you need to connect the database server as og_jcxxxxxx user and then create sequence generators for tables to facilitate the auto generation of primary key values. One sequence is for one table. You will then write INSERT statements to load the data. The sequence generators must be used in the INSERT statements.

TASK 4 - SUBMISSION FILE(S):

Produce a script called A1Task4.sql which contains SQL statement(s) for

- creating the required sequence generators

- inserting data into the tables

And put it in the folder jcxxxxxx.

Attachment:- Assignment Files.rar

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M92265291

Have any Question?


Related Questions in DBMS

Data mining assignment -in this assignment you are asked to

Data Mining Assignment - In this assignment you are asked to explore the use of neural networks for classification and numeric prediction. You are also asked to carry out a data mining investigation on a real-world data ...

Sql query assignment -for this assignment you are to write

SQL Query Assignment - For this assignment you are to write your answers in a word document. This assignment is in three parts: Part A (reporting queries), Part B (query performance), Part C (query design). For this assi ...

The groceries datasetimagine 10000 receipts sitting on your

The groceries Dataset Imagine 10000 receipts sitting on your table. Each receipt represents a transaction with items that were purchased. The receipt is a representation of stuff that went into a customer's basket. That ...

You are in a real estate business renting apartments to

You are in a real estate business renting apartments to customers. Your job is to define an appropriate schema using SQL DDL in MySQL. The relations are Property(Id, Address, NumberOfUnits), Unit(ApartmentNumber, Propert ...

Objectivethe objective of this lab is to be familiar with a

OBJECTIVE: The objective of this lab is to be familiar with a process in big data modeling. You're required to produce three big data models using the MS PowerPoint software. This tool is available on UMUC Virtual Deskto ...

The relation memberstudentid organizationid roleid stores

The relation Member(StudentId, OrganizationId, RoleId) stores the membership information of student joining organization. For example, ('S1', 'O2', 'R3') indicates that student with Id 'S1' joined the organization with i ...

Relational database exerciseyou have been assigned to a new

Relational Database Exercise: You have been assigned to a new development team. A client is requesting a relational database system to manage their present store with the anticipation of adding more stores in the future. ...

Relational database design a given the following business

Relational Database Design A) Given the following business rules, identify entity types, attributes (at least two attributes for each entity, including the primary key) and relationships, and then draw an Entity-Relation ...

We can represent a data set as a collection of object nodes

We can represent a data set as a collection of object nodes and a collection of attribute nodes, where there is a link between each object and each attribute, and where the weight of that link is the value of the object ...

Data model development and implementationpurpose of the

Data model development and implementation Purpose of the assessment (with ULO Mapping) The purpose of this assignment is to develop data models and map Database System into a standard development environment to gain unde ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As