You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
regarding the edit: you are totally trying to sneak a whole entity table into another entity table. Just because the lookup table is small does not make it any less of an entity. Further, your suggestion that people can 'choose the rows to use' is completely garbage. Foreign key constraints exist specifically for that purpose - use them.Telastyn– Telastyn2013-03-25 15:06:19 +00:00Commented Mar 25, 2013 at 15:06
-
@Telastyn I think the "Choose the rows to use" sentence was just a bad formulation on my part. I fully intend to use foreign key constraints. My point was that the users will not be able to add new rows to the LiteraryTypeTable from anywhere in the interface, or to type in free text for the Type field of the LiteraryWork table, so that I won't end up with a "Fairytale" entry as well as a "Fairy tale" entry.Rumi P.– Rumi P.2013-03-25 15:21:44 +00:00Commented Mar 25, 2013 at 15:21
-
@RumiP. use strings in the main table then. If your DB is small enough that storage and string processing is not a problem then you're OK. Don't try this on big databases though.gbn– gbn2013-03-25 15:33:39 +00:00Commented Mar 25, 2013 at 15:33
-
@gbn Actually, I haven't yet decided which version to use. I asked this question exactly because I wanted to hear all drawbacks before committing myself to an option. I have seen examples of using meaningful strings as IDs in textbooks and lecture notes which do teach normalization too, so I was just surprised to hear that it is considered non-normalized, that's why I tried to get more info from the people who said this.Rumi P.– Rumi P.2013-03-25 15:51:18 +00:00Commented Mar 25, 2013 at 15:51
-
2There are a couple of questions at dba.stackexchange that address this exact question: dba.stackexchange.com/q/1910/13333 and dba.stackexchange.com/q/232/13333Mike Partridge– Mike Partridge2013-03-25 15:52:17 +00:00Commented Mar 25, 2013 at 15:52
|
Show 3 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. design-patterns), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you