Git Product home page Git Product logo

assignment_7_databases's Introduction

assignment_7_databases

Exercise 1

First normal form - We found a violation which is caused by some of the columns being concated hence they are not in the single domain

Second normal form - There are no violations of the second normal form as all the columns seem to be dependant on the primary key(customerNumber)

Third normal form - There are several occurances where the third normal form is broken: 1) custCity depends on custZip and vice versa 2) repAddress depends on repCity 3) repName and repPhone depend on repEmail

Exercise 2

We agreed upon having a composite key of customerName and repEmail as the new primary key. With this new composite key we get a violation of second normal form because custCity, custZip, custCountry don't depend on the repEmail part of the composite key as well as repName, repPhone, repZip, repCity, repAddress, repCountry don't depend on customerName part of the composite key.

Exercise 3

safe update statement:

Update CustomerOverview
Set contactPhone = 87654321, repPhone = 87654321
where contactPhone = 12345678, repPhone = 12345678

unsafe update statement:

Update CustomerOverview Set repPhone=87654321

Exercise 4

alt text

Comparing on the root level - Checking the three initial elements which are D, E and G. Since "Handji Gifts& Co" Starts with the letter H, it is a value which is higher than all three initial values we have at the root level so we create a child node from the G element towards the right. That child node will hold all the letters which come after G in the alphabet.

assignment_7_databases's People

Contributors

lovrobiljeskovic avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.