Designing database including logical and physical designs

Assignment Help Database Management System
Reference no: EM131456551

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

Reference no: EM131456551

Questions Cloud

Post a substantive reply to the thread : Post a substantive reply to the thread.analyzing the thread as well as adding to the research and concepts put forth in that thread.
State hypothesis test for the quality control application : A production line operates with a mean filling weight of 16 ounces per container. Overfilling or underlining presents a serious problem and when detected.
What is the maximum dividend per share that firm can pay : What is the maximum dividend per share that the firm can pay? Indicate the effects of an $80,000 cash dividend on stockholders' equity.
What is the p-value and state the hypotheses : At Western University the historical mean of scholarship examination scores for freshman applications is 900. A historical population standard deviation.
Designing database including logical and physical designs : CP5503 Enterprise Database Systems Oracle Assignment. This part provides experience in designing a small database including both logical and physical designs
What is percentage change in the bonds price : what is the percentage change in the bonds price as a result of the 1% increase in interest rates?
Potential problems of poor database design : 1. What are some potential problems of poor database design?
What is the p-value based on the sample of theater : Playbill is a magazine distributed around the country to people attending musicals and other theatrical productions. The mean annual household income.
Large metropolitan trauma hospital : You are the security director for a large metropolitan trauma hospital and need to replace the incumbent security operations supervisor

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd