Write the SQL INSERT statements to load the tables

Assignment Help Management Information Sys
Reference no: EM132476917

MIS 315 Class 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

Required -

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 (atached), 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:- Wine Rating Database Assignment File.rar

Reference no: EM132476917

Questions Cloud

Assignment - Business Brief-Sustainability at Clif Bar & Co : Assignment - Business Brief: Sustainability at Clif Bar & Co. What business risks does Clif Bar & Company face with so many parts of its supply chain outsourced
Create a working thesis statement and basic research plan : Conduct research on the topic and locate articles that takes a clear con position - proposal offers direction for research needs and gives your professor
BSBHRM602 Manage Human Resources Strategic Planning : BSBHRM602 Manage Human Resources Strategic Planning Assignment Help and Solution - Choice Business College, Australia. Discuss PEST analysis
Request email assignment : Request Email Assignment - While expert interviews are a common method for collecting qualitative research data, when a face-to-face meeting is not possible
Write the SQL INSERT statements to load the tables : MIS 315 Class Project - Write the SQL INSERT statements to load the tables with the specified data in your personal database in the AWS SQL Server
Conduct a detailed investigation to aid the authorities : Conduct a detailed investigation to aid the authorities in catching the culprit and An IS auditor is performing a review of an application and finds something
Advanced Cost Accounting Questions : Advanced Cost Accounting Questions - Is it possible to have more than one split off point in these processes? Why or why not
Behavior change assessment : Behavior Change Assessment - Identifying your Target Behavior and Why is Changing This Behavior Important - Creating a Plan for Changing your Behavior
CRJ 410 - Advanced Policing Innovations Assignment : CRJ 410 - Advanced Policing Innovations Assignment Help and Solution, California State University, East Bay, USA. What are main distinguishing characteristics

Reviews

Write a Review

Management Information Sys Questions & Answers

  Describe barbour and dysons ideas about freedom

Identify potential ways in which your chosen technology can be used either as a means of enabling participation.

  Explain the daubert rule in contrast to the frye standard

Explain the Daubert Rule in contrast to the Frye Standard and disclose which one of the two would allow for the identification of more expert witnesses.

  Write a program to draw a house that resembles the one shown

Write your name one letter at a time. Enclose each letter in your first name in a separate rectangle, enclose each letter in your last name.

  Create a cost analysis - develop a proposal for the company

DesignIT has requested the consideration of all interconnected devices and wiring, along with speeds, for best performance.

  Create an enterprise system that uses a shared data base

Create an enterprise system that uses a shared data-base. Change the diagram you created in your answer to question 2 to include this database.

  Student query supply chain managementabc car manufacturer

student query supply chain managementabc car manufacturer is subject to caps on co2 emissions and would like to assess

  Explain what precautions could have prevented stuxnet

Explain what precautions could have prevented Stuxnet from occurring. Describe how Stuxnet changed the dynamics of defending threats.

  What do you want to do with your major

Prepare a 10 page paper with 10 citations on an emerging technology. You should incorporate the other assignments into the paper as all of them will have weight on any new technology. You will be required to conference with me at a regular basis -..

  Question about value of informationit has been said that

question about value of informationit has been said that information is power and that the separation between

  Explain your roles and responsibilities in designing

Explain your roles and responsibilities in designing and performing various testing for object-oriented systems and uncovering software bugs.

  Difference between rmi and rpc as communication models

Describe how you would deploy a security measure at each level of the OSI model. Describe the difference between RMI and RPC as communication models

  Discuss how organizations have faced the challenges

Discuss how organizations have faced the challenges that incident handlers are challenged with in identifying incidents when resources have been moved.

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