Implement the entity relationship model

Assignment Help Database Management System
Reference no: EM13741878

Relational database implementation

You must implement the entity relationship model provided in the sample solution of Assignment.

In implementing the ERD provided, you must complete the following tasks:

• Map the ERD into a set of relations in at least Third Normal Form (3NF). You must ensure that your relations meet 3NF. There is no need to show your working.

• Select any two (2) of your relations from the previous step and for each of them:

• List all the functional dependencies present in the relation

• Demonstrate that the relation meets Third Normal Form (3NF), for example:
STUDENT (StudentID, Name, Address, DateOfBirth)

The primary key is StudentID; this is the only candidate key since Name is not guaranteed to be unique (two different students may have the same name). Address is also not guaranteed to be unique. There will be one student name per Student ID, since only one name is recorded for each student. There will be one address per Student ID; even though a student may have multiple address (e.g. a home address and a work address), the case study states that there is only a need to record the home address. There will be only one date of birth per Student ID. This means that Student ID functionally determines every other attribute in the table; therefore there are no repeating groups. There is a single simple candidate key, therefore no partial dependencies are possible. Name cannot be used to functionally determine any other attribute in the table since two different students may have the same name; likewise for address and date of birth, therefore there are no transitive dependencies in the table. Therefore it meets the requirements of first, second and third normal form.

• Create all the relations in a Microsoft Access database. Consider each attribute in every table and make appropriate choices regarding data types and sizes, indexes, required/not required, and validation rules. Your choices should be appropriate for each attribute and should support data integrity. (Note: see the Data Integrity section below for specific data integrity requirements.)

• Create relationships as appropriate. Enforce referential integrity for all appropriate relationships in the database. Explore the possibility of cascade update and/or delete options.

• Review the default indexes created by Access for each table. You should ensure that the indexes follow the guidelines given in the set textbook.

• Populate the database with sample data. You must include sufficient sample data to test your queries and report(s). You should aim for at least 5 or 6 rows in every table. Please note that the expected result of query questions may depend on the actual sample data populated.

• Create all the relations in a Microsoft Access database. Consider each attribute in every table and make appropriate choices regarding data types and sizes, indexes, required/not required, and validation rules. Your choices should be appropriate for each attribute and should support data integrity. (Note: see the Data Integrity section below for specific data integrity requirements.)

• Create relationships as appropriate. Enforce referential integrity for all appropriate relationships in the database. Explore the possibility of cascade update and/or delete options.

• Review the default indexes created by Access for each table. You should ensure that the indexes follow the guidelines given in the set textbook.

• Populate the database with sample data. You must include sufficient sample data to test your queries and report(s). You should aim for at least 5 or 6 rows in every table. Please note that the expected result of query questions may depend on the actual sample data populated.

Data integrity

You are required to implement integrity constraints within the database to enforce the following requirements:

For the table Currency:

• All fields must be entered.

• Currency code must be consisted of 3 letters.

• Current interest rate must be in the range 1% and 100%.

For the table Review:

• All fields must be entered.

• The only valid values for a recommendation must be "Buy", "Sell", or "Hold".

• Reason field can't be null.

For the table Trade:

• All fields must be entered.

• The quantities traded must be not less than 1000 units.

• Transaction date can't be future-dated.

Information requests

Create queries to answer the following information requests. Note: Do not use the Access query builder (QBE) to create your queries - you should type the queries manually using SQL view.

Although it is optional to justify the effectiveness of your SQL statement for the request, the marking process of MS Access queries for information requests may also consider your justification of the effectiveness for your queries in the implementation report if you provide them. (Expected results using sample data for queries depend on your actual sample data populated in the database. The following results of queries are only shown as examples. It is important that your SQL statement must reflect the correct business logic & SQL syntax.)

1. Show a list of all recommendations made after 1st January 2015 on the currencies of US dollar and Euro. Display the details including analyst name, currency code, recommendation, review date and reason.

Query 1 Result

FirstNamelLastName         urrencyCode

RecommendationlReviewDate                                     Reaso

John

'Johnson       'USD

'Buy

6/03/2015 'Fed financial QE policy

Joshua

'Andersen IEUR

'Buy

15/02/2015 Forecast Eurozone GDP increase

Linda

'Aka             IEUR

'Hold

2/01/2015 'Euro central bank interest decision

2. Which portfolio has least amount of available cash? List the details including portfolio number, available cash, host client name, contact phone, and the responsible manager name.

Query 2 Result
PortfoliolD AvailableCash ClientName ContactPhon ManagerName 
1007         $50,000.00 Dennis Dale148007761         ken King

3. List the currency or currencies that have two or more ratings.

Query 3 Result
CurrencyName InterestRate NbrOfRating

Euro                  0.00%           1

US Dollar            1.00%           2

4. How many trades has each manager performed? Show the manager's name, contact phone and the total number of trades performed. Order the list so that the manager with the most trades appears first.

FirstName Lastname ContactPhone  NbrOfTransaction

Ken           King        0749554433             4

Mark          Pauline    0748090945             2

Jeff           Lincoln     0748090161             2

Fred          Hoffman   0748095613             1

David         king        0748505033             1

5. List details that managers have bought the currency of British pound and Japanese Yen in second half year of 2014. These details include manager's name, currency name, quantities purchased, exchange rate and transaction date.

Query 5

FirstNamelLastNamelCurrencyName

QuantityPurchasedlExchangeRatelftransactionDate

 

Fred

Hoffman        Japanese Yen

110001

0.01

5/11/2014

Ken

King               'British Pound

2000001

1.65

5/10/2014

Ken

King               'British Pound

40001

1.581

9/09/2014

6. Find out three currencies that have been most frequently traded. Your query result should include the currency code, currency name, interest rate and how many times they have been traded. Sort the result by the number of times they were traded (Hint, using top, count functions.)

Query 6

CurrencyCodel CurrencyName

InterestRatelNbrOfTimesTradedd

GBP

'British Pound

2.0096r

 

.NZD

'New Zealand Dollar

2.00961

2

EUR

'Euro

0.00961

2

Reference no: EM13741878

Questions Cloud

Explain the codes of cultural behavior : Information Literacy-Codes of Cultural Behavior. Choose a destination (one country) anywhere in the world. To begin this section, explain why you chose this particular country.
Net cash flow for the current month : Allison expects her monthly cash inflow after taxes to be $3000. She also has the following monthly expenses: Rent, $750; student loan payment, $200; utilities, $150; food, $300; recreation, $600; car expenses, $200; clothing, $150. What is Alliso..
How biology is connected to surroguatcy : How biology is connected to surroguatcy
Determine the equilibrium price and quantity : Demand q=30-2/3pSupply q=2p-10Determine the equilibrium price and quantity in this market.
Implement the entity relationship model : Implement the entity relationship model provided in the sample solution of Assignment - Map the ERD into a set of relations in at least Third Normal Form (3NF). You must ensure that your relations meet 3NF. There is no need to show your working.
Translational regulation : Which of the following is an example of translational regulation,  If the genetic code were read in groups of four nonoverlapping nucleotides, using this nucleotide sequence, then the resulting amino acid sequence would be
Compute the number of units exchanged and the price : Consider a market characterized by the following inverse demand and supply functions: PX = 30 - 3QX and PX = 10 + 2QX. Compute the number of units exchanged and the price at which those units will be exchanged when there is a $24 per unit price floor..
Assignment on aggregate planning assignment : Aggregate Planning Assignment. In general, under what conditions might a firm favor a level production plan over a chase plan?  A chase production plan over a level plan?. Why is it important to update a sales and operations plan on a regular basis..
The manager of a business in a competitive market : You are the manager of a business in a competitive market and your production technology is described by the total cost function (q) = 150 + 5q +(1/10)q2 In addition, assume the market price is p = 15 dollars.

Reviews

Write a Review

Database Management System Questions & Answers

  Create a database for a home-budgeting application

The first part is to create a database and some tables which will be appropriate for a home-budgeting application. That portion of the assignment should be completed from the MySQL console command line.

  Problem 1suppose you have a relation schema about teaching

problem 1suppose you have a relation schema about teaching classes that has the following attributes class instructor

  Write benefits of using dbms to manage data in program

Describe briefly what are the main benefits of using DBMS to manage data in program applications involving extensive data access.

  Write names and e-mail addresses showing foreign key columns

Illustrate all the data in each of four tables. Don't show foreign key columns. Write down the names and e-mail addresses for all customers who have had stove repair which cost more than $50.

  Problem1 assumethefollowingsimpleb-treewithn4this tree

problem1 assumethefollowingsimpleb-treewithn4this tree consists of only a root node and three leaf nodes. recall that

  Conceptual database scheme for the csrss

Develop an E/R diagram to represent the conceptual database scheme for the CSRSS and list the information of all doctors who are specialized is heart surgery.

  Create the table for the relation training courses

An ER diagram for the system. Show all entities, relationships, cardinalities and optionalities. Also, include all intersection entities. You must use the Finkelstein methodology as per the study book and tutorials.

  Construct relational database for new yorks fire department

The state wants to record fire department for which each fire fighter currently works and each fire fighter's supervisor. Supervisors are always higher-ranking certified fire fighters - Construct relational database for New York's fire departments..

  Identify the potential sale and department store transaction

Evaluate whether the use of a distributed DBMS structure is appropriate and identify the optimization techniques that should be factored in to enhance the operations of the database in your design.

  Logical database design - conceptual database design

Draw the corresponding GRD, exhibiting all the primary keys and foreign keys. For simplicity, no other attributes nor multiplicity constraints are required.

  Importance have button that takes you back to main page

What is the importance to have a button that takes you back to the main page on each web page? How does dead end or orphan pages affect the continuity of a website?

  Show an alternative design using the general notations

Show an alternative design using the General notations for the attribute described in Problem 2 that uses only entity types (including weak entity types if needed) and relationship types.

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