Project - the wine rating database

Assignment Help Database Management System
Reference no: EM132474162

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

Questions Cloud

What is the probability distribution for her weekly profit : If she sells the roses for? $5 each, what is the probability distribution for her weekly profit for extra long stemmed? roses?
How many in the sample of ten would you expect to be female : A recent survey of medical students showed that 70% are female. A sample of ten medical students tea selected for a team. use binomial probability to answer
Identify changes and to assess performance against data : An analysis of focus group results. Assume that, in addition to the survey you developed. you have already conducted a focus group
What will be the value of the bonds : On September 30, 2013 Sanchez, Inc. sold $300,000 of 8% bonds. What will be the value of the bonds when they are redeemed at maturity on September 30, 2018
Project - the wine rating database : Performing a bulk load of a table using SQL Server Management Studio - design, load data, and query a wine rating database
What would the null and alternative hypotheses be : If the hypothesis of a study is that there is a psychopathology that is specific to addiction, regardless of whether or not the addiction is a substance
Prepare separate entries for each transaction : On June 10, Monty Corp. purchased $8,300 of merchandise on account from Marigold Company, Prepare separate entries for each transaction on the books of Monty
What is the dependent variable : QUESTION 1: We're trying to determine a person's salary using their age as a predictor. What is the dependent variable?
Same population and expected difference and variation : Which study will require a larger sample size, one done with 80% power or 90% power when alpha (type I error) is set at 0.05 and we use the same population

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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