Skip to main content

Questions tagged [normalization]

Normalization refers to transformations which aim to reduce variation of various types of data and thereby allow more consistent processing, searching, sorting, comparison, etc.

Filter by
Sorted by
Tagged with
-1 votes
3 answers
542 views

NOTE: Please don't respond by telling me that I probably don't understand what I am looking at. You can't possibly know that and it's wrong. Just don't answer if that's all you have to say. I'm ...
JimmyJames's user avatar
  • 31.1k
1 vote
1 answer
150 views

I'm designing a mongo database and I have a dilemma if I should go for normalization. Let's say that there is a database with images and descriptions. Many alternative descriptions can belong to one ...
Karol Borkowski's user avatar
4 votes
2 answers
1k views

In the simplified database schema depicted below, I'm considering denormalizing by adding a short-circuit key (EventId, relation shown in red) on Appointment. One advantage is not needing a join to ...
scotru's user avatar
  • 238
52 votes
6 answers
12k views

I have a database with a 1:m relationship. I have to display a list of parents to the user rapidly on a home screen at startup. The parent shows a single piece of information that is a sum of a ...
tommytucker7182's user avatar
-2 votes
1 answer
104 views

I know that this question has been asked before and is the same or at least almost the same but I just want to know: Is it the only method or is there any other way to do it? I have these tables: ...
My Name Is In Your Heart's user avatar
0 votes
1 answer
677 views

So... Le's say I have 3 tables named: Member Bus AutorizeMember ID Member is referenced to Bus and ID Bus is referenced to AutorizeMember which is also referenced to Member 3 times. Thats is because ...
My Name Is In Your Heart's user avatar
4 votes
5 answers
3k views

What is the normal form of a typical JSON object? We often need to convert JSON objects to some set of tables. Once they are tables, the tables have measurable normal forms based on all the usual ...
James Madison's user avatar
2 votes
3 answers
314 views

Suppose I have this: ID A_Type B_Type C_Type 1 Y N N 2 N Y Y And I "flip" those columns into this: ID Type Value 1 A Y 1 B N 1 C N 2 A N 2 B Y 2 C Y I know this is fine to do. I know it ...
James Madison's user avatar
2 votes
5 answers
973 views

In 1970, Edgar Codd published his landmark paper ‘A Relational Model of Data for Large Shared Data Banks’ where he defined relational databases as well as their normalization to first normal form (1NF)...
Géry Ogam's user avatar
-1 votes
1 answer
75 views

A relation R(A,B,C,D) is given. C and D are equivalent (C is the course ID and D is the course name, one implies the other). C and D are prime attributes. Does that violate the requirement of 1NF ...
jkf's user avatar
  • 137
1 vote
1 answer
144 views

I'm in charge of designing the entire backend for the REST API of an application that works more or less like an online browser game (think OGAME, Travian, and the likes). In this game, players are ...
neirenoir's user avatar
-2 votes
1 answer
76 views

I am working on an app and creating models now. I think this is a basic 1N normalization question but am not sure. Should I break location/address out as a separate table? Let's say I have Parents ...
Pangolin's user avatar
1 vote
1 answer
197 views

We are designing a system, in which we need to store amount of SalesTax applied as well as Tax percentage value. We decided that we will keep tax value in separate table (simplified example): Taxes ...
Maciej Pszczolinski's user avatar
-3 votes
2 answers
191 views

I have these concepts for a database application: Session, Subsession and File A session can have multiple files A session can have multiple subsessions A subsession can have multiple files A session ...
Canol Gökel's user avatar
1 vote
1 answer
1k views

Let's say you're loading a denormalized flat file of purchase transactions that looks like this: | location_name | location_zip | product | product_price | |---------------|--------------|---------|--...
seriestoo2's user avatar
2 votes
3 answers
4k views

I was following a tutorial on the normal forms of SQL databases, and I got confused landing on this example : https://www.tutorialspoint.com/sql/third-normal-form.htm. From CREATE TABLE CUSTOMERS( ...
Ricola's user avatar
  • 289
0 votes
1 answer
125 views

I am designing a database system + application that deals with pipe objects who are part of a larger grid network. There are about 1000-5000 pipes for each network. Let's assume each pipe can have 2 ...
akgis's user avatar
  • 17
0 votes
1 answer
167 views

I have a number of attributes I need for various page loads and other backend tasks, and I'm debating on whether storing these things in a database or calculating them on the fly. For instance, if ...
user58446's user avatar
  • 327
4 votes
2 answers
360 views

Let's say we've got 3 entities here, User, Tag, Track and a single associative entity called Tagged. I need to count a tag frequency of a track and the common way is to count the record of tagged, but ...
Edwin Harly's user avatar
1 vote
1 answer
69 views

In my application, I have many things that use images in different ways. For example, a product may have a logo and many screenshots, a user can have a profile image, and a company can have a logo. I ...
Christian Pavilonis's user avatar
2 votes
2 answers
2k views

I am requesting information about a Users address and as is good practice when collecting information, I validate the input and respond accordingly where appropriate. Assuming valid input is received,...
Peppermintology's user avatar
1 vote
1 answer
2k views

In RDBMS, goals of Normalization: Free the database of modification anomalies Minimize re-design when extending Avoid bias toward any particular access pattern First step involves avoiding redundancy ...
user1787812's user avatar
6 votes
2 answers
10k views

RDBMS design often emphasizes data normalization (especially 3 NF) for the sake of efficient transaction processing (OLTP). OLTP is the predominant use case for an RDBMS. Goals of Normalization in ...
user1787812's user avatar
3 votes
1 answer
68 views

I have posts table: id (int) index uid (int) text (text) created (int) is_deleted (tinyint) and a table to store post stats: post_id (int) index comments (int) shares (int) views (int) Now when I ...
Shaharyar's user avatar
  • 875
1 vote
1 answer
150 views

I have a family of products that currently houses 3 product lines. All 3 product lines share the same 4 options, but on top of those, each product line has 1, 2, or 3 different options respectively, ...
Dennis's user avatar
  • 8,267
2 votes
1 answer
171 views

Lets assume we have to model the following entities: Application : Application submitted by users Application Study: the study to determine if the Application should be accepted Consultation : A ...
chrisl08's user avatar
  • 216
16 votes
4 answers
4k views

If we have Table A that has a one to one relationship with Table B, does it ever make sense to keep them apart? Or does it never hurt to combine them into a single table? Do either of these scenarios (...
The 29th Saltshaker's user avatar
2 votes
3 answers
8k views

I'm looking for a way to organize database tables when it comes to handling product option pricing retrieval and also storing pricing history for my use case. What I have I have a custom-made ...
Dennis's user avatar
  • 8,267
244 votes
17 answers
107k views

In my databases, I tend to get into the habit of having an auto-incrementing integer primary key with the name id for every table I make so that I have a unique lookup for any particular row. Is this ...
AJJ's user avatar
  • 3,048
2 votes
1 answer
734 views

Here I have a very basic ILS (Integrated Library System) done a long time ago (made with C#/SQL Server), in production for years. But now I have a demand of make this system MARC 21 standard compliant,...
cezarlamann's user avatar
2 votes
2 answers
1k views

A client has recently expressed a wish to assign their market segmentation labels to their customers, so that they can sort by market segmentation in their dashboards ("show me all the VIP customers ...
Escher's user avatar
  • 185
1 vote
3 answers
2k views

I'm creating a charter database structure. I'm trying to figure something out, I have read on here that databases should be normalized. Now, I'm a bit confused on this because I believe I have ...
ARLCode's user avatar
  • 197
4 votes
2 answers
371 views

Concerning normalization of a one to many relationship, I am not sure how to represent a collection with a specified capacity in a database. I can think of two ways to represent an entity A with a ...
aaroncarsonart's user avatar
1 vote
0 answers
311 views

I'm thinking about a database schema, and would really appreciate if some of you could look at where I'm up to and offer some advice.. The mission - We have to write a program that will fetch data ...
Martyn's user avatar
  • 795
0 votes
1 answer
270 views

So I have a sets of numbers representing some timings. This is how they look like: [sec] [msec] 100 75 100 200 101 60 101 233 102 255 104 21 First column contains the ...
mariusmmg2's user avatar
1 vote
0 answers
233 views

I've been researching how to properly design a mongo schema and came across this blog post on their site: http://blog.mongodb.org/post/87892923503/6-rules-of-thumb-for-mongodb-schema-design-part-2 ...
Mr_E's user avatar
  • 303
70 votes
4 answers
40k views

Suppose I have 4 types of services I offer (they are unlikely to change often): Testing Design Programming Other Suppose I have 60-80 of actual services that each fall into one of the above categories....
Dennis's user avatar
  • 8,267
2 votes
3 answers
1k views

I am working on time attendance module and I managed to read the data from the timing machine in the following format: Id CheckIn Type Status 0000142 5/15/2015 6:00 PM 2 OK ...
Monah's user avatar
  • 121
3 votes
3 answers
6k views

Overview A central web application to supports other web applications(A) for user and its role/permission management. Applications (A) call the central application via API to get the user roles/...
Pratik Garg's user avatar
2 votes
2 answers
2k views

I've gotten out into the real world recently, and for the first time have had to really think about database design, as I've been developing across the entire Java stack. With that I've realized that ...
Cdn_Dev's user avatar
  • 235
8 votes
3 answers
315 views

I am developing 3-4 interdependent programs. Call them foo bar baz and auth. I want them to be independent of each other. Imagine if I were to license out each program to other companies. Some ...
alanmanderson's user avatar
4 votes
1 answer
689 views

I have learned about database design, including normalization during my undergraduate course. When we have to model a database for a system, we can start with an ER model and then convert it to the ...
DesirePRG's user avatar
  • 187
0 votes
1 answer
848 views

I'm implementing tags into my question and answer application. Users will be limited to the tags available by the app, so they can't choose their own. So maybe only 30-50 tags will be available. This ...
Martyn's user avatar
  • 795
2 votes
1 answer
710 views

If I have the following relation R = (A, B, C, D) And the functional dependencies: A -> B, B -> A, CDB -> A, CDA -> B The candidate keys are CDA and CDB. The third normal form says that there ...
user1062704's user avatar
5 votes
2 answers
388 views

Context: I'm working on a database of museums and Categories will be one way the user will be able to search. e.g click on "Music" and a list of music related museums turn up. Pretty simple. Problem:...
CallMePhilip's user avatar
3 votes
4 answers
968 views

I'm creating a database to store words. The intended usage is to query the database to find a word matching a set of filters. E.g. if I wanted to find a word with < 10 letters, < 3 syllables, ...
Lou's user avatar
  • 366
1 vote
1 answer
75 views

I have two tables, project and photo. photo has ID,projectID,path : each project has multiple photos. Now one of these photos is the one that has to be displayed. The question is how to represent ...
Milind R's user avatar
  • 155
6 votes
4 answers
6k views

I've been reading up a lot on Domain-Driven Development, and I came to the question of how to preserve lack of distinct identity with value objects (VOs). While in the DDD world, this is a requirement ...
AdrianGW's user avatar
0 votes
1 answer
1k views

I had the following DB schema: Customer Car Rental ------- ---- ------ Name Name Car_ID ID ID Customer_ID Date This is said to be non normalized ...
John V's user avatar
  • 4,946
7 votes
1 answer
2k views

I was reading the following article: Polynomial interpolation of GPS satellite coordinates, Milan Horemuz and Johan Vium Andersson 2006 and it states the following: "The estimation procedure of the ...
RandomGuy's user avatar
  • 222