Canonical representation of the integration layer

Assignment Help Data Structure & Algorithms
Reference no: EM131146340

Retrieving Metadata Information

You have already created a metadata integration layer on top of two databases, localDB1 and localDB2.

The purpose of this homework is to go further and retrieve information from that integrationlayer.

In such an environment, there are two types of users:

- local users who access the local database directly,by issuing queries to the local schema. These are called local queries.

- global users who access both databases by issuing queries to a global (integration) layer which in turn, accesses both databases at the same time. The queries are called global (or canonical) queries since they use terms from the canonical representation.

In this homework we are going to exploit the information stored in the metadata layer to get metadata information about canonical queries (see above).

Below is an example of a very simplistic table that could be used as a metadata table to describe metadata information about data in the two participating databases (local DB 1 and local DB 2).

Canonical Representation

Column name used  in local DB1

Data Type in local DB1

Column name used  in local DB2

Data Type in local DB2

Customer

Client

Varchar2(20)

Patron

Char (50)

Product_ID

CD_ID

Varchar2(10)

CD

number

...

...

 

...

 

A manager wants to get some information from the participating databases and submit a canonical query which is written in terms of the canonical representation of the integration layer.

Create a Word file or a pdf file and upload it on Blackboard. It should contain the answers to the problem described next.

Use the manager's questions provided in page 2 (they are also part of HW2) and submit them as canonical queries; in addition, submit queries against the metadata (integration layer) to extract information about every field in each query. In other words, for each manager question perform the following steps:

1. Submit each question as a canonicalquery: Translate each manager question as a SQL query using the canonical names (the values under the canonical field in the metadata table). This is a manual step. You need to type the query yourself. Make sure it is formed using fields which are values of the canonical representation column in your metadata table. Do this for each one of the 5manager questions (queries).

a. Example: Look at the sample table above. Assume that a query for localDB1 is: select CD_ID from CD_TABLE where Client = ‘Joe';

b. Canonical representation:The above is a local query. It is translated into a canonical query as follows: select Product_ID from Products where Customer = ‘Joe' and Product_Type = ‘CD'[NOTE: You type this queryin the deliverable manually based on information in your metadata table. All the column names and table names are canonical representation terms. Do not execute the query in Oracle, it will not run, it will give you syntax errors]

2. For each field name and table name appearing in the canonical query, type, submit, and execute another query against your integration layer and show its results to discover the corresponding names/types/etc. of that field name in canonical representation, local DB1 representation, and local DB2 representation. Print a screen shot of the query running against the integration layer and show its results. Show the canonical representation of each field, the corresponding field in localDB1 and its data type (if applicable), the corresponding field in localDB2 and its data type (if applicable), and any function (e.g. CONCAT (Street, City)) that may be needed for conversion from canonical to local.

a. Example: The canonical query in the previous question contains several column and table names (Product_ID, Products, Customer, Product_Type).

b. The first column is Product_ID. For this data item, you need to submit aquery similar to the one below, against your metadata table, and display the result: SELECT canonicalRepresentation, columnLocalDB1, datatypeDB1, columnLocalDB2, datatypeDB2, functionApplicable FROM metadata_table WHERE CanonicalRepresentation = ‘Product_ID';Continue issuing additional queries, for each one of the remaining fields of the query at hand (for this particular example the remaining fields are Products, Customer, Product_Type).

Perform the above steps (1 and 2) for each one of the manager questionsManager questions (queries)
1. List all details of a specific product given its unique identifier
2. List each product(s) of a particular author or artist
3. List each product with at least quantity N
4. List each product that is out of stock
5. List the location of the warehouse(s) which stock a product of a given unique identifier

IMPORTANT NOTE 1: You are not retrieving answers to the manager questions; you are retrieving metadata information from the integration layer.

IMPORTANT NOTE 2: If you have already generated a query (in step 2) to display metadata information of a specific column and this column shows up in several manager queries, you need to execute the query which displays metadata information about this column only once.

Reference no: EM131146340

Questions Cloud

Evaluation of the article conclusion and supporting reasons : Analysis of connection between article's main points and description of interpretation and exegesis in unit lesson and  Evaluation of the article's conclusion and supporting reasons.
Prepare a journal entry to record the purchase of material : Prepare a journal entry to record the purchase of material.- . Prepare a journal entry to record material used in production.
Find the expression for the maximum response : Derive an expression for the time at which the response of a critically damped system will attain its maximum value. Also find the expression for the maximum response.
What stereotypes - biases and assumptions are at play : Explain how the social variables and determinants influencing the development of the social problem vary depending on whether the social problem is local or global. In other words, are the previously identified social variables and determinants in..
Canonical representation of the integration layer : Create a metadata integration layer on top of two databases - global users who access both databases by issuing queries to a global (integration) layer which in turn, accesses both databases at the same time.
What is our journal entryies : So assume we own 10% of another company. That company has net income of 80,000 ans makes dividend distributions of 50,000. What is our journal entry(ies)?
Determine the time taken to reach the maximum displacement : If the stiffness of the spring is k = 80 N/mm and the damping constant is c = 20 N-s/mm determine (a) the maximum displacement of the car after engaging the springs and damper and (b) the time taken to reach the maximum displacement.
What is the projected dividend for the coming year : What is the projected dividend for the coming year? (Do not round intermediate calculations and round your final answer to 2 decimal places. (e.g., 32.16))
Will there be people who are against it : Write about three paragraphs about whether the policy is financially feasible - can it be done with the money they will budget for the policy? Will it be too expensive? is it politically feasible? Will people support it?

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Convert a sorted double-linked list to a binary search tree

Write a program to convert a sorted double-linked list to a binary search tree - Find the middle node in the doubly linked list and set it as root, convert the left sublist and set it as left subtree, convert the right sublist and set it as right s..

  Comparison of the applicability of array

Data structures include: 1. a linked list, 2. an ordered, one dimensional array, and three. a binary tree. Assume the list of letters R, A, N, B, C, F, X and G are stored in a list.

  Evaluate the given problem of data types

Comprehensive quiz 1) Evaluate the following: a) (5 > 3 && 4 6 && true) c) (3 >= 3 || false) d) (true || false) ? 4 : 5.

  Create an integer array withsome random two-digit numbers

Create an integer array withsome random 2-digit numbers. Move these numbers into a singly linked list with the same order. Display the contents of the array and linked list, respectively.

  Prove that you should not also use the greedy strategy

Prove that you should not also use the greedy strategy. That is, show that thereis a game that you can win, but only if you do not follow the same greedy strategy as Elmo.

  Create a program that reads product number and prices

The Rinky Dooflingy Corporation produces different kinds of doofingies, each identified b a product number. Create a program that reads product number and rates and stores these values in two arrays,

  Write an algorithm that computes the depth-first search

Write an algorithm that computes the depth-first search in­ terval labeling scheme (see Subsection 4.4. 2) for an arbitrary connected net­ work. Can it be done in O(N) time units? Can it be done using O(N) messages?

  Prove that no routing algorithm can delivery of packets

Prove that no routing algorithm can guarantee delivery of packets under continuing topological changes. Does this guarantee that packets are always delivered even when the network is subject to a possibly infinite number of topological c..

  1 what are the different applications of data structure2

1. what are the different applications of data structure?2. what are the basic limitations of linear array?3.

  Determine order of operations for seq search algorithm

Determine the order of operations for this Seq Search algorithm. Best case and worse case and why - Find the order of operations for this Search algorithm. Prepare a proper algorithm for this problem and how to complete it.

  Look scheduling policy

Given that it takes 1.75 ms to travel from one track to the next of a hard drive; that the arm is originally positioned at Track 15 moving toward the low- numbered tracks; and that you are using the LOOK scheduling policy

  Pseudocode for divide-and-conquer algorithm

Write a pseudocode for a divide-and-conquer algorithm for finding the position of the largest element in an array of n numbers.

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