Normalization is the process of organizing columns into tables within a relational database in such a way as to minimize redundancy and avoid insertion, update and deletion anomalies.

learn more… | top users | synonyms

1
vote
1answer
28 views

Looking for suggestions to model a database of Electrical Components

We have a database of electrical components and I am trying to make sure I have a good design. I am not a database designer (my comfort zone is designing with these hardware components), so I am ...
7
votes
2answers
96 views

Normalizing a table with a field that generally uniquely identifies a row, but is sometimes null

forgive me if this has been asked and answered before. I'm roughing out a schema for an inventory management system, to be implemented in PostgreSQL. All of our products and services have a sku. ...
3
votes
3answers
231 views

Normalising Customers and Employers with a people table

At what normalisation stage is it recommend to split say Customers and Employees into a People table and then link to the unique attributes of Customers and Employees? I can't seem to find the ...
1
vote
0answers
26 views

Is this database in 1NF, 2NF and 3NF?

I'm doing a software development course and I have to normalise my tables as part of it. Can anyone double check that my data is normalised correctly? The database is for a gym. It has these tables ...
0
votes
0answers
11 views

Algorithm of decomposition in Boyce-Codd Normal Form

I have to give the keys of the following relation, say if they are 1,2 or 3NF and give a BCNF decomposition. Yet I think I misunderstand the difference between 2NF and 3NF: R(A,B,C,D,E) with ...
3
votes
1answer
30 views

does merging tables always increases performance?

Consider we have data from visitors in a web site. And you are trying to create a database design for data mining. There are some common fields which users have such as browser,ip, etc... . But there ...
1
vote
1answer
39 views

How to decompose this relation into 3NF relations?

Today I read about the 3NF decomposition algorithm. It said: Find a minimal basis of F, say G For each FD X → A in G, use {X, A} as the schema of one of the relations in the decomposition ...
0
votes
1answer
37 views

I'm a beginner, studying Data modelling as part of my course. I'm having trouble understanding Normalisation. How can i improve?

It was difficult to frame the title given the word limit, so apologies for that. Currently I'm studying DBA and Data modelling as a part of my ICT Apprenticeship course in a Web Development team. I'm ...
2
votes
1answer
75 views

Minimal 3NF normalization issues

I'm trying to learn how to normalize to 3NF but the example that my teacher gave us doesn't really help. The algorithm I always used is this one: Find a canonical cover F_c for F For each FD X->Y ...
2
votes
1answer
95 views

Lost (and found?) on 4NF

I'm so extremely lost on 4NF it's not even funny. I've been reading on it for literally days and, except for about 15 minutes ago, I wasn't sure that I had even broken the surface. I think I might ...
1
vote
2answers
54 views

Better deffining a parent-child relationship on a table

Our team is developing a new system and it has a Warehouse table that must have a hierarchical relationship between entries since a customer can have 1st, 2nd, 3rd and Nth degree warehouses. We first ...
1
vote
0answers
26 views

Is this a violation of Normal Form?

Assume a cash register system where some users have access to a cash drawer, while others do not (they can only close by some kind of card payment). Keep in mind that a user who closes a check a one ...
3
votes
3answers
2k views

First Normal Form, why is it good and how does it reduce redundancy

I asked a similar question on SO and was advised to ask the type of question here. This is for a course on relational databases. A sample problem asks "how come every table in a relational database ...
2
votes
1answer
18 views

Are there any schema design changes that can take a design from 4NF into a different 4NF design?

My thought/contention is that once a database schema is in 4NF it by definition can only be changed into something less than 4NF (Denormalisation, 3NF etc) and that there is no alternative 4NF design ...
0
votes
1answer
41 views

What are changes made to a database schema that is already in 4NF that would break applications?

For this question I consider applications select and use columns by name (so I am excluding use of select * as a breaking change). Asked in a different way, is it the case that once a Database schema ...
1
vote
1answer
23 views

Applying second and third Normal Form

Let be a relation R(NameFile, Size, Directory, DateCreation,HourCreation,Login,AutAccess,DateAccess,TypeAcces F={NF,D→S; NF, D →DC; NF, D→HC; L,NF,D→A; L,NF,D,DA,HA→TA; } Part of ...
21
votes
8answers
2k views

What problems are solved by splitting street addresses into individual columns?

We have a team who designs the tables and relations for software developers. In our organization, they are pretty strict about enforcing 3NF normalization - which to be honest, I agree with given the ...
0
votes
1answer
34 views

How to put the below data in 3NF?

I need to put the data from the diagram in 3NF (third normal form)
4
votes
1answer
208 views

Reporting on a normalized Key-Value pivot

ERD & SQL Fiddle provided. We're trying to design a reporting tool for our stakeholders around a normalized Key-Value Pair model. We've tried to find a solution using Pivot Tables but can't seem ...
3
votes
1answer
192 views

Should database be denormalized if I need an index across multiple tables

I have a catalog of album and song names. The song has a foreign key to the album table. I expect queries like: SELECT * FROM song s JOIN album a ON a.id = s.album_id WHERE LOWER(CONCAT_WS(' ', ...
1
vote
1answer
47 views

Why is this not in 2NF and 3NF form? [closed]

R = {A, B, C, D, E, F} Dependencies: {A} -> {C,F} {C} -> {D} {B} -> {E} a. this relation is in 1st normal form (NF). Explain why it is not in 2nd NF and not in 3rd NF. b. make the ...
0
votes
1answer
54 views

contradiction of 3rd normal form on address table

I have an Address table and its columns are address_id, address_1, address_2, city, state, country, pin code .Its primary key is address_id . According to 3rd normal form no non-key attribute should ...
0
votes
1answer
25 views

Relation Between Normalizations [duplicate]

say we have a fixed table T. Is there a unique normalized version of T, i.e., does the/a correct normalization, say up to 3NF produce a unique table up to some equivalence? Basically, I am trying to ...
1
vote
0answers
19 views

Clustered index on last_update_at timestamp

I have a Votes table , which can be considered a wrapper. I have a sub_items table, which holds one votable item. One Vote has many sub_items. On sub_item is owned by only one Vote. I have a ...
1
vote
1answer
37 views

How would you normalize a database that has multiple products to a single transaction ID?

How would you normalize this? I can't find a way to keep multiple products under a single SalesID
0
votes
0answers
15 views

What is the most efficient way to represent this relationship?

In the database a user can follow many different users. I'm looking for an efficient way to represent this. In the image above you can see my initial idea. This works however results in duplicated ...
0
votes
1answer
38 views

What kind of table structure to use to display product, testing, and test results?

I am creating a database, but I am a beginner. We test several different kinds of paint, with specific test methods, and I would like to document all of the results. So for an example, I would test ...
1
vote
0answers
27 views

How to improve on this database design

I have different 'modules' . Currently , they are: Votes Chats To-do lists I am using mysql and long polling to get updates about these modules in near real time. I have also have a table called ...
1
vote
1answer
30 views

If my understanding of BCNF is correct, how did we know that R1 was not in BCNF?

Given that R(ABCDE) AB->C BC->D CD-> E DE->A Since, B is the only attribute absent on the right-hand side, we would start with B. {B}+ = B . Not a CK. Next, we ...
2
votes
2answers
50 views

Customer table with last order id - violate normalization?

So I'm looking at a customers table that has a relationship with an orders table. There is a trigger in place to set the last_order_id field of the customers table whenever a order it placed. Does ...
2
votes
0answers
50 views

Should I move repeating foreign keys into separate table?

Idea Users can upload lots of items and send them from processing. From the upload settings I can set a channel to which the uploaded items belong to. Channel is a separate entity. Currently I set ...
0
votes
1answer
43 views

Lose some FDs in 2nf normalization?

Suppose we have R=(A,B,C,D) and FDs are {B->C, C->D}. The only candidate key is AB, then A and B are prime; C and D are not prime. B->C breaks the 2NF requirements because is a partial dependency. So ...
1
vote
0answers
20 views

Help needed designing a 'Group' concept for students in a class

I've been wracking my brain for a while now trying to figure out how to fit this part of my domain model into the database, but whatever I come up with just feels wrong. I've attached a picture below ...
0
votes
2answers
41 views

Modeling a product database and dealing with inheritance

So, to get better at designing databases, I'm attempting to model a database system after the AR15 Builder. Here is what I have so far: While it makes sense logically, I'm afraid there may be ...
0
votes
2answers
56 views

Normalisation to 3NF

I've been learning how to normalise data into a normalisation table and I'm struggling to get my head around this example question. I have this 'clinical record' card: Would anyone able to explain ...
0
votes
0answers
39 views

Database design for flights, airlines and aviators

I created two tables Airline(airline_id, name) Flight (flight_id, airline_id) - airline_id contains id of airline which perform flight and I want to create third one Aviator But I can not ...
0
votes
0answers
9 views

Entity Relation in Database Normalization

I'm little confused Entity Relationship in normalization, Normalization will automatically create relation or should we create relation attribute by real world example? Suppose I have these ...
5
votes
2answers
471 views

Likes or votes for posts

I am making a small program where users makes posts or write blogs. On those posts, other users can like or dislike the post as in facebook or upvote or downvote the post as in stackoverflow. I would ...
1
vote
1answer
111 views

How can I improve this table, and subsequently the performance of the queries I execute on it?

I have inherited this table of POS transaction level data. In my opinion it is terrible. There are 3.5 million rows, which span ~4 years, with a distribution of anywhere between 1 result and 100k ...
0
votes
2answers
46 views

Relation in 2NF with a transitive dependency?

Tomorrow I have my final exam of Database Design but I have a doubt about the Second Normal Form (2NF). The definition says a relation is in 2NF if no non-prime attribute is partially dependent on a ...
1
vote
1answer
32 views

Store a revenue based dataset in a relational database

I have several revenue based datasets with below structure: Subject 2012 2013 2014 2015 online marketing 54 50 60 80 website ads 900 850 ...
0
votes
2answers
47 views

Can this be further normalized?

I have to define a system where we will be storing Image data and which can have an arbitrary number of attributes for the Image added per client. I have designed the following table Image ImageID ...
3
votes
2answers
122 views

Survey Database - Respondent Table (1NF or 3NF - Pros and Cons)

Building out a Survey ERD ODS layer. Now i'm debating on the design for my Respondent Table. Not sure if its best to have it as 1NF or 3NF. FOr a quick back story I get a survey extract with ...
1
vote
1answer
150 views

How to remove data redundancy in product table if multiple suppliers are there for same product

I am designing a database where I have different products and suppliers. For example, I have a product, "mobile phone", say an Apple 5S. This will be sold through my website from different suppliers ...
0
votes
0answers
24 views

Schema Design for multiple many-to-one relationships. of which exactly one should exist

Say I have table A, B, and C. B and C can both be related to multiple A's, but each A should have exactly one of either B or C related to it. Which database design is better: A: a_id, b_id NULL, ...
0
votes
1answer
50 views

Database design for actions on some entity

I am making a todo list kind of a service. One todo list will have several items , that can be done/deleted/snoozed etc. Users can also add a new item to the list , delete an item etc. I want to ...
0
votes
1answer
24 views

Create new table values based on partial column value - access

I am trying to remove a ton of unnecessary rows in this table. Currently there are 1.3m of them which are all an individual transaction id - with the country and destination assigned for each which ...
1
vote
1answer
30 views

Get one column table when doing localization

I have got only one column for a table when i create two localized tables. Code as bellow. -- Month CREATE TABLE `month` ( `id` INT PRIMARY KEY NOT NULL AUTO_INCREMENT, ); -- Month Localized ...
4
votes
4answers
171 views

Should I normalize my string arrays, or just keep it a simple string?

I am working on a project involving cards from the Magic: The Gathering game. To be of any use, I must load the basic information about each card into my database, but some of the fields may contain ...
0
votes
1answer
21 views

What should be the rule for excluding an FD from consideration while doing BCNF or any other Normalization?

Let us consider this example: http://www.mathcs.emory.edu/~cheung/Courses/377/Syllabus/9-NormalForms/examples.html At the first decomposition step, it is using A -> B C D E. On the next step, ...