Write the tables on separate lines

Assignment Help Other Subject
Reference no: EM133719780

Normalization Homework

You will use the ViewsSeqHWStart.sql file. This script creates two tables and inserts some data. After running this script, do the following (IN ORDER!). As always, put your name on the HW and number each problem (commented out). The deliverable for this part of the HW is a .sql file.

--1
Create a view called instrument_info_view, that contains all fields in the instrument table.

--2
Add a new instrument to the above view: washboard, $0.22, "For those with less talent only".

--3
Query the view, displaying all fields but restricting the results to those instruments costing less than $400. Sort by cost, from highest to lowest.

--4
Create another view called band_instrument_view, that includes the following fields: instrument name, band member first and last name and length of time in the band.

--5
Modify the above view (#4) to also include the instrument description field and proficiency rating (as well as the previous fields-: instrument name, band member first and last name, and length of time in band). The view should have the same name. Make sure for this view that users are not allowed to make any changes to the underlying tables.

--6
Query this view, including first and last name, instrument, and proficiency rating.

--7
Create an index (instrument_inst_name_idx) on the instrument name field.

--8
Create a query, using the group function COUNT (*) for all instrument names that have an ‘a' anywhere in the name. Run this query, then answer the following question:

Using the Explain Plan, does the query use the index or the table in doing the query? W hat is the cost?

Do the following:

1. List all fields that are totally dependent on the PK fields (PlayerID and Year):

2. List all fields that have partial dependence (on one or the other PK fields), and tell which of the PK fields it is dependent on:

3. List all fields that have transitive dependence, and tell which field it is dependent on:

4. Change the DB from 1NF to 2NF. Write the tables on separate lines, with PKs first (indicate by PK), and other fields to the side (indicate by FK the foreign key fields). I've put the tables (and some fields) in to help. All fields must be accounted for.

Reference no: EM133719780

Questions Cloud

Define racial profiling : Define racial profiling. Describe the connection between stereotypes and racial profiling. Explain the consequences of racial profiling.
Design deficiencies with respect to ergonomics : Description of the product or system with photos or sketches and Design deficiencies with respect to ergonomics principals and criterion measure
Why you believe your selected approach useful when working : Describe two reasons why you believe your selected approach would be useful when working in your preferred future work environment.
Analyze the case to best determine spiritual care : Analyze the case to best determine spiritual care interventions throughout their plan of care. In particular, the focus will be on the Christian application
Write the tables on separate lines : Change the DB from 1NF to 2NF. Write the tables on separate lines, with PKs first (indicate by PK), and other fields to the side (indicate by FK the foreign
What structures in exosystem perpetuate fatherlessness : How have beliefs and ideas of the overarching culture in the macrosystem in the US perpetuated fatherlessness?
What are the five rights in medication administration : What are the five rights in medication administration, and how do they help with safety in the administration of various drugs in a hospital setting?
How did race-prejudice-discrimination shape their experience : How did race, prejudice, and discrimination shape their experiences? What issues surface from their experience for the Latinx community at large?
Describe the best leader you have personally known : Identify ways that each of the 10 facts you have learned in this Biology of Aging Course may impact how you live your life today and how it may affect how you l

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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