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

  What core values would you risk your life and freedom

What core values would you risk your life and freedom to defend? Could a nation going to war be appropriate in certain circumstances - or is war never an approp

  Why was she having trouble moving into that stage

What early experiences did the author had that may have led to her drinking and lack of confidence? Connect these experiences with a crisis in one or more

  Determine convective heat loss per unit length of tube

A 1 cm diameter horizontal tube is located transverse to a flow of flluid(water) in a wide duct. the outer wall of the tube is maintained at 320k and the fluid temperature is 300k

  Describe ways in which statistical data may be abused

Describe some ways in which statistical data may be abused. Demonstrate an abuse of statistical information through use of an example. Why is it important for.

  Share at least two solutions to meet that specific challenge

Describe a challenge in nursing. As a nurse leader, share at least two solutions to meet that specific challenge based on current proposals and/or inspiration

  What is the specific mission of the institution

Access the website of a government agency or international organization (IGO or NGO). What is the specific mission of the institution? How does the existence of the institution and its mission relate to any of theories discussed in class

  Reflect on the value gained from conducting the project

Conduct small-scale research, information gathering and data collection to generate knowledgeto support the project - Reflect on the value gained

  Develop one alarm management and patient safety strategies

Develop one alarm management and patient safety strategies for each of the following levels of care: Organizational, Unit and Individual caregiver.

  Most significant threats to us homeland security

What do you see as the most significant threats to U.S. homeland security? What makes them significant? Discuss the degree to which the U.S. is prepared to address these threats. (Include a discussion of the specific policies and procedures put in ..

  Define social and cultural competency

In 500-750 words, address why social and cultural competency is critical in the research process. Define social and cultural competency

  Describe three pieces of legislation

Write a 1500 word paper in which you describe three pieces of legislation that have been critical in defining the rights of management and unions

  What is the evidence for the existence of the midlife crisis

Why has the concept become so pervasive in American culture, What is the evidence for the existence of the midlife crisis

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