Write the required queries in your personal database

Assignment Help Management Information Sys
Reference no: EM132474176

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:

Part 1. RegionID in WINE_RATING must exist in RegionID in REGION
Part 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.

Required Work

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.

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: EM132474176

Questions Cloud

Determine which of the statements is true : The level of calcium in the blood of healthy young adults follows a Normal distribution with mean µ = 10 milligrams per deciliter and standard deviation
Prepare consolidation worksheet for the business combination : Prepare consolidation worksheet for the business combination. financial records for these two companies for the year ended December 31, 2018.
What is the market value of this stock : The company paid a dividend of $2.00 last week. If the required rate of return is 16 percent, what is the market value of this stock
Draw the probability curve and find the upper : Draw the probability curve and find the upper and lower limits of IQ score (x) that a person can make to be in the middle 50% of people.
Write the required queries in your personal database : Write the required queries and successfully run them in your personal database to produce output. You will be required to submit the SQL queries
What is the probability the team wins exactly 11 games : Over last 8 years the team wins 72% of the games. Next year's schedule is a random sample of 12. What is the probability the team wins exactly 11 games.
Record the entry on June : If the bonds had been issued as convertible with the option for bond holders to convert each $1,000 bond. Record the entry on June
Clear conclusion about the effectiveness of the model : Identify the p-value and use it (and a 5% significance level) to make a clear conclusion about the effectiveness of the model.
Determine and journalize the transactions for perez company : Determine and Journalize the transactions for Perez Company using the gross method of accounting for sales discounts. Assume a perpetual inventory system.

Reviews

Write a Review

Management Information Sys Questions & Answers

  Analyse information security vulnerabilities

analyse information security vulnerabilities and threats and determine appropriate controls that can be applied to mitigate the potential risks

  Components of the supply chaina supply chain involves all

components of the supply chaina supply chain involves all the activities associated with how raw materials facilities

  Describe an app that is creating a security problem

Write a two page paper (APA rules apply) describing an app that is creating a security problem for consumers. Reference at least one published article that points out this security issue.

  Describe personal experiences or observations

Describe personal experiences or observations where threat modeling helped or would have helped mitigate risks.

  Describe stack trace

Describe stack trace.Identify the information that hackers can obtain through error messages.

  Javascripthow do i design an algorithm to find the largest

javascripthow do i design an algorithm to find the largest number in a list of them?design an algorithm that finds the

  Review of a scholarly article addressing ethics

Review of a scholarly article addressing Ethics and Why it Matters in Negotiation.Reviews should include a synopsis and your opinion of the article.

  Identify e-commerce systems that provide xml data

Identify at least two e-Commerce systems that provide XML data integration. For each system, describe how XML extensions could enable e-Commerce integration.

  How does the group influence the state government

Discuss its connection or relationship to each of the two major political parties in your state. Analyze the interest group's relationship with the two major political parties by addressing these questions: How does the group influence the state gove..

  Has social media changed how you interact with businesses

Has social media changed how you interact with businesses

  What risks most concern you in using this app

Select an organization with which you regularly do business but not one you have used in a previous discussion.

  Write an executive summary on the blackout of 2003

Please provide a one page executive summary on the Blackout of 2003. Your summary should not exceed one single spaced page and should include Who, What, When, Where, Why and How the situation could have been handled or perhaps how the situation wa..

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