A Guide to SQL
A Guide to SQL
9th Edition
ISBN: 9781111527273
Author: Philip J. Pratt
Publisher: Course Technology Ptr
Question
Book Icon
Chapter 2, Problem 1CAT
Program Plan Intro

Normalization:

  • Normalization refers to the method of representing a database in the terms of relations, which are in the standard normal forms.
  • It is organized in a table manner to reduce data redundancy and data dependency.

First Normal Form (1NF):

A table or a relation is said to be in first normal form if and only if the domain of each attribute consists of only unique values and the value of each attribute consists of only a single value.

Second Normal Form (2NF):

A table or a relation is said to be in second normal form if and only if it is in first normal form and no non-key attribute of the table is dependent on only a portion of the primary key.

Third Normal Form (3NF):

A table or a relation is said to be in third normal form if and only if it is in second normal form and if the candidate keys are its only determinants.

Blurred answer
Students have asked these similar questions
The marketing team wants to celebrate the success of StayWell with a party. The team wants a table with the names of all residents and owners combined into single column named PARTICIPANT. You need to combine this information from the tables and send it back to the team. You do not need to create a new table in the database schema. Task   Return a list of all the residents and owners
Implement a new independent entity phone in the Sakila database. Attributes and relationships are shown in the diagram below   The diagram uses Sakila naming conventions. Follow the Sakila conventions for your table and column names: All lower case Underscore separator between root and suffix Foreign keys have the same name as referenced primary key Write CREATE TABLE and ALTER TABLE statements that: Implement the entity as a new phone table. Implement the has relationships as foreign keys in the Sakila customer, staff, and store tables. Remove the existing phone column from the Sakila address table. Step 2 requires adding a foreign key constraint to an existing table. Ex: ALTER TABLE customer ADD FOREIGN KEY (phone_id) REFERENCES phone(phone_id) ON DELETE SET NULL ON UPDATE CASCADE; Specify data types as follows: phone_id, phone_number, and country_code have data type INT. phone_type has date type VARCHAR(12) and contains strings like 'Home', 'Mobile', and 'Other'. Apply these…
In anticipation of a change to the database, you are asked to provide a list of all products that have 'Man-Made' or 'Man Made' in the the composition text. (HInt: It is easiest to use LIKE in this instance.)  In addition, you are requested to replace either 'Man-Made' or 'Man Made' with the word 'Synthetic'. Only include ProductIDs between 1050 and 1060.  Show the following in your answer: ProductID, ProductName, Composition, and the modified composition field as 'NewComposition'.   (HINT:  This problem is a little tricky because you need to replace both 'Man-Made' and 'Man Made'.  The way to do this is to use a replace within a replace.)
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
  • Text book image
    A Guide to SQL
    Computer Science
    ISBN:9781111527273
    Author:Philip J. Pratt
    Publisher:Course Technology Ptr
    Text book image
    Oracle 12c: SQL
    Computer Science
    ISBN:9781305251038
    Author:Joan Casteel
    Publisher:Cengage Learning
Text book image
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
Text book image
Oracle 12c: SQL
Computer Science
ISBN:9781305251038
Author:Joan Casteel
Publisher:Cengage Learning