Entity relationship modelling and logical database design

Assignment Help PL-SQL Programming
Reference no: EM132541685

Part A Entity Relationship Modelling and Logical Database Design

Question 1 Identify Entities & Develop Business Rules
Identify all entities and relationships in the case study and develop a set of business rules. You should follow the syntax given below. Each relationship must be described by two rules, one in each direction.
Each/A/An ENTITY_1 May/MustRelationship_Verb_Phrasenumber ENTITY_2

Question 2 Construct a logical Entity Relationship Diagram (ERD)
Based on the business rules developed in Question 1, construct a logical ERD for the case study using the
Visual Paradigm tool. (10 marks)
• Identify all attributes in each entity including all primary and foreign keys (any composite and multivalued attributes must be transformed according to the rules of the relational model).
• Identify ostrong and weak entities ostrong (identifying) and weak (non-identifying) relationships
• Verb phrases for relationships should be shown in both directions, except where they are adjacent to an associative entity, in which case only the verb phrases related to the bounding entities need to be shown.
• If super/subtypes are used, indicate whether the super-subtype relationships are disjoint or overlapping, and fully or partially specialised (complete or incomplete).
• Identify the connectivity for each relationship.
• Identify the mandatory/optional dependencies for the relationships.
• Resolve allM:N relationships.
• Describe any assumptions you have made in a text note in the diagram.

Question 3 Use Normalisation to validate your ERD and derive the relational schema
Use the technique of normalisation to validate the logical ERD data model that you developed in Question 2 is in third normal form.
• Select two entities from your ERD. For each of these entities, discuss how and why they are in 3NF:
oprovide justification using the concepts of functional dependencies and the steps involved with the first three normal formals.

Part B Database Implementation

In this part you should develop a database based on your logical ERD developed and validated in Part A. You must populate the tables with sample realistic data.

Question 4 Create tables
Create the tables in Oracle. Write SQL scripts defining each table.
• The table definitions should include
(1) All attributes with appropriate data types
(2) all appropriate constraints such as primary key, foreign keys, and check statements. All constraints must be given names. Naming standards must be used. Question 5 Populate data
• Insert a small sample of realistic test data (5 -10 rows min.) into each table. Refer to Appendix A of case study specification for examples of sample data. All test data must be meaningful in order to demonstrate your understanding of the data.

For Part B, you must include the following for each table in your database:
• SQL table creation script
• SQL insert script
• Sample data (include results of SELECT statements for each table)

Part C Construct SQL Queries

Question 6 Construct SQL Queries
Identify ten data retrieval and transaction requirements that would be used by the business described in the case study. For each of the requirements that you have identified, construct SQL queries needed to display the data. The queries must include a combination of the following SQL features:
• Use of restriction (WHERE clause), Arithmetic expressions, Concatenation of columns
• Use of comparison and logical operators
• Sorting output rows
• Multiple table join (Equijoin and Outerjoin)
• Single row and multiple row functions

Note: You may combine some of the preceding list of features in a single query. The design of each query should demonstrate your understanding of the correct usage of the various features and clauses of SQL. A simple ‘select * from table_name' will fetch you a mark of zero. There should be no more than two queries that involve a single table.
For Part C, you must include the following for each SQL query statement:
- Description of the purpose of the query.
- SQL SELECT query
- The result of the query.

Attachment:- Case Study for Database Project.rar

Reference no: EM132541685

Questions Cloud

Describe five technology and business trends : Describe five technology and business trends that have enhanced the role of information systems in today's competitive business environment.
How long does take the company on average : If the inventory turnover ratio is 6 times, how long does it take the company, on average, to sell all of its inventory?six months/six weeks
Developed definition of globalization : Since we developed a definition of globalization in the last module, this week we're digging further into how it applies to you personally.
Search for the purple squirrel : What's the meaning behind the "search for the purple squirrel" in relation to spotting talent? Is this relevant to non-tech companies, as well?
Entity relationship modelling and logical database design : Entity Relationship Modelling and Logical Database Design - Construct a logical Entity Relationship Diagram - Identify Entities & Develop Business Rules
Find and calculate the current ratio : Find and Calculate the current ratio.Accounts Rec. $5,000, Accounts Payable, Mortgage Payable, Inventory, Trucks, Cash $3,000
How might swot analysis be helpful : When Amancio Ortega, a Spanish former bathrobe maker, opened his first Zara clothing store, his business model was simple: sell high-fashion look
What additional steps can be taken in given situation : The network restrictions surrounding the web authentication service is one layer of defense. As was noted, this component is too valuable to trust to a single.
Organization plants in poor nation : You are visiting one of your organization's plants in a poor nation. You discover a young girl (under the age of 16) is working on the factory floor.

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

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