KC7013 Database Modelling Assignment

Assignment Help Computer Engineering
Reference no: EM132522214

KC7013 Database Modelling - Northumbria University

Assessment Background and Scenario

This assessment is based on two scenarios as follows:

a) The scenario ‘Academic Information System (AiS)"of a fictitious university called University of Gharnata. The university wants to develop an information system to support its academic activities. The details of this scenario are provided in Appendix 1.

b) The Sales History (SH) Data Warehouse scenario. SH is a sample database schema provided by Oracle, which has been extensively used in the Oracle's Data Warehousing Guide (Lane, 2013).The details of this scenario are provided in Appendix 2.
Assignment Questions

Part 1: Implementing object-relational database for AiS

This part is based on the ‘AiS' scenario as described in Appendix 1.

(A) Using object-oriented / extended entity relationship modelling, produce a conceptual and logical database model for AiS.

You have the option to produce a freshconceptual and logical database model using object-oriented or extended entity relationship modelling or incorporate advanced entity modelling concepts (e.g., aggregation& composition, inheritance or generalisation / specialisation/, etc) into your entity relationship model for AiS from your assignment 1.

(B) Create an object-baseddatabase for AiSusing object-relational (O-R) features of Oracle 10g//11g/12c based on the conceptual and logical database model from (A) above.

Note that all relationships (e.g., one-to-one, one-to-many, many-to-many) must be bi-directional. Moreover, each to-many side of a relationship (e.g., in case of many-to-one and many-to-many) should be implemented using nested tables. In addition, your implementation should allow all objects to be shareable (i.e. all relationships should be REF based). Oracle (2005a) provides a more detailed documentation on Oracle object-relational features.

(C) Populate the O-R version of your database using data from relational version of the AiS database you developed in Assignment 1.

Using PL/SQL and/or SQL, populate your O-R databaseby querying the relational tables you implemented earlier during your Assignment 1 solution. This task can be seen to contain the following sub-tasks:

(i) Creating / inserting objects in your object tables.
(ii) Populating one-to-many, many-to-one, and many-to-many relationships among the objects created in sub-task (i).
(D) Query the O-R version of your AiS database

For this part, you must use PL/SQL procedures (2 procedures, each worth 4 marks). Answer the following questions after populating the object-relational database:

q1) Display names of students, details of the course they study, details of the module they have studied and their marks for all postgraduate students.

q2) Display details of all people of ‘AiS' (students and academic staff), e.g., their names, their home addresses and name of the department where they work or study.

NOTE the following important points for Part 1 (A to D):

• You must submit all the SQL and PL/SQL code used for creating, populating and querying the O-R database.
• You must submit the output of running your code (e.g., SPOOL files).

(E) Compare and contrast your relational and object-relational versionsof the AiS database. You should highlight the advantages and disadvantages of both versions. Comment on which version will best suit the AiS database.

Part 2: Data Warehousing Tasks

This part is based on the Sales History scenario as described in Appendix 2.

You must submit all the SQL queries and any other code that you wrote in answering any of the tasks / questions (e.g., the use of Explain Plan statements for the queries and their SPOOL outputs).

(A) Study the index definitions in sh_idx.sql. Discuss in detail (using cost-based analysis) why these indexes (at least two of them) are useful for answering queries over the SH2 and DWn versions of the database. You should not run the sh_idx.sqlscript at all under any circumstances as it will interfere with your cost-based analysisof query performance in Part 2 of this assignment.

(B) Identify two new indexes and justify why they could be useful. Write the SQL code for creating these indexes under your DWn user. Give example queries with cost-based analysis for both DWn (which will have the new indexes) and SH2 users (which will not have any of your new indexes).

(C) Given the materialized views (MVs) defined in sh_cremv.sql, discuss in detail why these MVs are useful for users of the SH database. You should provide detailed examples (cost based analysis, e.g., using Explain Plan for running sample queries on both SH2 and DWn) to illustrate your answer. You should not run the sh_cremv.sqlscript at all under any circumstances as it will interfere with your cost-based analysis of query performance in Part 2 of this assignment.

(D) Identify two other MVs based on the base tables in the SH schema under your DWn user and justify why they would be useful. Write the SQL code for creating these MVs.

(E) Prior to the introduction of the aggregation function ROLLUP, there was no possibility to express an aggregation over different levels within one SQL statement without using the set operation UNION ALL. Every different aggregation level needed its own SQL aggregation expression, operating on the exact same data set n times, once for each of the n different aggregation levels. With the introduction of ROLLUP in the recent editions, Oracle provided a single SQL command for handling the aggregation over different levels within one single SQL statement, not only improving the runtime of this operation but also reducing the number of internal operations necessary and reducing the workload on the system.

i. Using ROLLUP, write an SQL query over the SH schema under your DWn user involving one fact table (SALES or COSTS) and at least two dimension tables. Provide reasons why your query may be useful for users of the SH data warehouse.

ii. Using set operation UNION ALL (and not ROLLUP), write an SQL query that produces the same result as the query in (a) above.

iii. Using EXPLAIN PLAN, provide a detailed discussion analysing costs of evaluating the above queries (i.e. with and without ROLLUP).

Attachment:- Database Modelling.rar

Reference no: EM132522214

Questions Cloud

Define the PaaS and IaaS : Define and describe PaaS and IaaS. Describe the potential disadvantages of PaaS and IaaS.
What role does population growth play in food security : Considering the causes of food insecurity, what factors interrupt the flow of food from the source to the people in the developing country you selected?
Relationship between interpersonal violence and health : Researchers examined the relationship between interpersonal violence and health in college age women. The researchers administered a psychological distress
What will be the amount of interest pain in second year : Kellerman Company purchased a building and land with a fair market value of $550,000. What will be the amount of interest pain in second year
KC7013 Database Modelling Assignment : KC7013 Database Modelling Assignment Help and Solution, Northumbria University - Assessment Writing Service -Identify two new indexes and justify
What would be the depreciation expense for the first year : What would be the depreciation expense for the first year under normal depreciation, double declining and units of production method
Develop a diagram that compares the two organizations : This week you learned about competition and strategy. A little healthy competition is good for an organization, however, from time-to-time, it can lead.
Hurricane katrina disaster area : Select a major organization that was located in the Hurricane Katrina disaster area.
Definition of racism : Definition of racism. What factors have impacted your perspective on racism and HOW have these factors impacted your perspective?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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