Transforming a database model into database tables

Assignment Help Management Information Sys
Reference no: EM132468848

Project

The Wine Rating Database

For the class project you will model, design, load data, and query a wine rating database. This database is a simplified version of a database that stores wine ratings. The database contains three tables:

WINE_RATING (RatingID, WineName, Producer, WineType, Rating, VarietalID, RegionID) REGION (RegionID, RegionName, CountryCode, Statecode)

VARIETAL (VarietalID, VarietalName, VarietalDesc)

The underlined columns are the primary keys, and the italicized columns are the foreign keys. The WINE_RATING table has two referential integrity constraints:

1. RegionID in WINE_RATING must exist in RegionID in REGION

2. VarietalID in WINE_RATING must exist in VarietalID in VARIETAL in the Wine Rating Database

Modeling the Wine Rating Database

Chapter 4 of the textbook covers data modeling and the entity-relationship model. As part of the work for chapter 4 you will use a free entity-relationship modeling tool, ERDPlus, for an in-class exercise and the chapter 4 exercise assignment. For the class project you will use the ERDPlus application to model the Wine Rating database. The Start Here folder in the BlackBoard course contains more information about ERDPlus and a tutorial video.

Creating the Wine Rating Database

Chapter 5 of the textbook describes the process of transforming a database model into database tables. As part of the work for Chapter 5 you will perform an in-class exercise and the Chapter 5 using ERDPlus to generate SQL TABLE Create statements. For the class project you will use the ERDPlus application to generate TABLE CREATE statements for the Wine Rating database.

Loading the Wine Rating Database
Chapter 3 of the textbook described SQL INSERT statements. You will apply what you learned in Chapter 3 to write SQL INSERT statements to load the three tables of the Wine Rating database with the required data.

Querying the Wine Rating Database
Chapter 3 of the textbook covered SQL queries. You will apply what you learned from chapter 3 to write the required queries.

Database Modeling
Complete an entity-relationship diagram containing the three tables, their columns and the relationships between the tables. You will be required to submit an image of the entity-relationship model in an assignment for this part of the class project.

Database Design
Generate and modify the SQL statements to create the tables, their relationships, and the referential integrity constraints using the ERDPlus tool. Successfully run the SQL TABLE CREATE statements to create the Wine Rating database objects in your personal database in the AWS SQL Server. You will be required to submit the SQL TABLE CREATE statements in an assignment for this part of the class project.

Database Load
Write the SQL INSERT statements to load the tables with the specified data in your personal database in the AWS SQL Server. Successfully run the SQL INSERT statements in your personal database. You will be required to submit the SQL INSERT statements in an assignment for this part of the class project. The data for the tables will be uploaded from a flat file using a bulk load process. You will need to write a single SQL INSERT INTO SELECT statement for each table that selects data from a staging table and inserts it into the actual table (see below).

Database Queries

Write the required queries and successfully run them in your personal database to produce output. You will be required to submit the SQL queries and a copy of the query result in an assignment for this part of the class project. The required queries will be posted in the assignment.

Wine Rating Data

If you peruse the table data below, you will note that the WINE_RATING and REGION tables have dozens of rows. You are not expected to write separate SQL INSERT statements for each row of data. The data for each of these tables will be loaded using a bulk load process that the class will learn in an in-class exercise. Here are the steps for performing a bulk load of a table using SQL Server Management Studio:

1. Download the data files from the WINE_RATING Table folder. Name the files <table name>_STAGE.csv.

2. Login to the server with SQL Server Management Studio.

3. Right click on your personal database and select Tasks / Import Flat File ... from the dropdown menus.

4. Click Specify Input File and browse to the location of the saved CSV file.

5. Follow the prompts in the dialog and the data will be loaded into an SQL Server table

6. Write the SQL for an INSERT INTO ... SELECT ... to load the data from the staging table into the actual table in the Wine Rating database.

Attachment:- Class Project.rar

Reference no: EM132468848

Questions Cloud

How to define and provide numerical illustrations for capm : How to Define and provide numerical illustrations for the CAPM. How to Determine how diversification is important in the formation of the CAPM.
Does the community view the facility as charitable : Does the community view the facility as charitable? Does the facility rise to the status of charitable?In two different paragraphs with not less than 100 words.
Sustainable competitive advantage : There is no such thing as a sustainable competitive advantage that lasts over the long term." Defend your position.
Discuss the context of the given legislation : Discuss the context of this legislation - name the expected demanders and suppliers as outlined in our textbook, Chapter 3. Describe the expected interest group
Transforming a database model into database tables : Describes the process of transforming a database model into database tables. As part of the work for Chapter 5 you will perform an in-class exercise.
How much gross profit was realized from the sale : Sold for $8.00, and was assigned overhead at the rate of 27% of direct labor costs, How much gross profit was realized from this sale?
Foreign market and affect the outcome of that decision : Various factors or forces impact a company's decision to go into a foreign market and affect the outcome of that decision.
Legitimate lifestyle target for advertisers : The Foodie Lifestyle. Is a foodie a legitimate lifestyle target for advertisers? Are these advertisers actually targeting foodies?
Define and provide numerical illustrations for the capm : Define and provide numerical illustrations for the CAPM. Show how the model adjusts across different inputs and the consequence for valuation.

Reviews

Write a Review

Management Information Sys Questions & Answers

  Discuss the problem of underserved populations and subgroups

Discuss the problem of underserved populations and subgroups, includingcharacteristics of those groups and barriers to delivery

  Describe the storyline of your commercial

Describe the storyline of your commercial. What will the audience see? Does your commercial have a main character? If so, then please describe it.

  Why is it important to use it in information technology

Based on your experience, describe what research is, why we do it, and why we read it? Why is it important to use it in Information Technology (IT) research

  How the submission engine plan will handle submissions

Explain how the submission engine plan will handle submissions in other languages, including Portuguese and Mandarin. Explain how you will use technologies to help alleviate the concerns that the content is biased toward technology professionals and..

  Achieve competitive advantage in cost

"Process engineering" is the design of business processes to achieve competitive advantage in cost, quality, speed, and service. Which of these advantages were driving the development of the Primis system for McGraw-Hill

  Describe the types of systems described in this case study

Why are data, information, business intelligence, and knowledge important to Apple? Give an example of each type in relation to the iPad.

  Briefly explain what the simulation modeling relies upon

Based on this knowledge and assumptions, in your own words, briefly explain what the simulation modeling relies upon? Please identify, name, and provide.

  Your work as a management information consultant has led

your work as a management information consultant has led you to a long-term project working on a custom decision

  Why might management opt for other than the most economic

Using expected value, is it economically better to make or buy the component? Strategically thinking, why might management opt for other than the most economic?

  Value chain configuration is increasingly inadequate as a

value chain configuration is increasingly inadequate as a means to describe how an organization organizes and operates

  What physical and technical safeguards are currently used

Look at the following pictures. From what you can see, determine what physical and technical safeguards are currently used to protect sensitive information.

  Identify the mdm requirements in erd model

The ERD model should illustrate the data quality process you would recommend for the Master Data Management (MDM) system you described in the business case.

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