Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

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

Question lab 1 creating a database designthis assignment

Question: Lab 1: Creating a Database Design This assignment contains two (2) Sections: Database Design Diagram and Design Summary. You must submit both sections as separate files in order to complete this assignment. Not ...

Your taskyou have been commissioned to develop a database

Your task You have been commissioned to develop a database system that is capable of keeping records for FU's table tennis matches from now on. The database needs to keep a record of: - All team information, including pl ...

Database design amp development assignment -assignment

Database Design & Development Assignment - Assignment title - Design and Implement a Relational Database for a local Print and Ink Refill Business. Learning Outcome - Use an appropriate design tool to design a relational ...

Select from e d pwhere edeptddept and dcitypcity and

Select * From E, D, P WHERE E.dept=D.dept AND D.city=P.city AND D.budget>1M AND P.priority=A; Assuming relations have the same size and uniform distributions, what is the best plan with Nested Loop joins only? Write it a ...

Sqlquery 1 how many products have standard price less than

SQL Query 1. How many products have standard price less than 1000? Query 2: Display all attributes for products made of "Cherry" from Product table w/o referring to column names. Query 3: Display all product names having ...

Sql injection on a searchthe way search performs its task

SQL injection on a search The way Search performs its task is by executing the following query (in a php script):          $var=stripslashes($_POST['search']);          $query = "SELECT username from lab1_login where use ...

Real time analytics - data analytics assignment -this is a

Real Time Analytics - Data Analytics Assignment - This is a business analytics project aimed at generating innovative analytics solutions for a Global Food Consulting firm working in the area of Animal agriculture and fa ...

Instructionsfor decades relational databases remained

Instructions For decades, relational databases remained essentially unchanged; data was segmented into specific chunks for columns, slots, and repositories, also called structured data. However, in this Internet of Thing ...

Assignmentqueries functions and triggersdatabase

Assignment Queries, Functions and Triggers Database Systems Aims The aims of this assignment are to: formulate SQL queries; populate an RDBMS with a real dataset, and analyse the data; design test data for testing SQL qu ...

Question 1 a- consider that you are asked to design an

Question: 1. (a)- Consider that you are asked to design an entity relationship diagram based on the below scenario: A university consists of a number of departments (id, d_name) and each department offers some courses. A ...

  • 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