Click here to Skip to main content
16,007,443 members
Home / Discussions / Database
   

Database

 
AnswerRe: Cannot insert duplicate key row in object Pin
Alsvha5-Jun-08 19:17
Alsvha5-Jun-08 19:17 
AnswerRe: Cannot insert duplicate key row in object Pin
Blue_Boy5-Jun-08 20:40
Blue_Boy5-Jun-08 20:40 
QuestionMagic & SQL server Pin
E_Gold5-Jun-08 9:58
E_Gold5-Jun-08 9:58 
AnswerRe: Magic & SQL server Pin
Marek Grzenkowicz6-Jun-08 23:42
Marek Grzenkowicz6-Jun-08 23:42 
QuestionHow to use Distinct from the Following Query Pin
Vimalsoft(Pty) Ltd5-Jun-08 8:20
professionalVimalsoft(Pty) Ltd5-Jun-08 8:20 
AnswerRe: How to use Distinct from the Following Query Pin
Rutvik Dave5-Jun-08 11:04
professionalRutvik Dave5-Jun-08 11:04 
QuestionA Database Design Problem - Catalogue Pin
Cristoff5-Jun-08 1:46
Cristoff5-Jun-08 1:46 
AnswerRe: A Database Design Problem - Catalogue Pin
Mike Dimmick5-Jun-08 1:58
Mike Dimmick5-Jun-08 1:58 
I think you're falling into the trap of trying to model the 'real world'. In software systems we don't model all the properties of the real-world objects we deal with, only those properties that are significant to the problem we're trying to solve.

In a retail system only a few things are significant: an identifier to uniquely identify this product, (commonly) a more user-friendly description, the price we plan to sell it at, and the level of stock we have. If you need to categorise, put a 'category' indicator on the product table.

Generally you shouldn't split up a logical collection of items into multiple tables. It becomes very hard to join them back together. If for any reason you actually do need to, for example if one category is queried much more heavily than others and it would benefit from being placed on a different disk, consider the database's partitioning support (if any). I believe it was possible to simulate partitioning efficiently in SQL Server 2000 but can't remember the details.

If you need to store additional information that won't be uniform across all items, consider nullable columns and using NULL where the value doesn't apply, or what I call 'extension tables' which are associated with the main, common, table in a one-to-one relationship, which stores only the extended information about this type of item.


DoEvents: Generating unexpected recursion since 1991

GeneralRe: A Database Design Problem - Catalogue Pin
Cristoff5-Jun-08 2:52
Cristoff5-Jun-08 2:52 
AnswerRe: A Database Design Problem - Catalogue Pin
ChandraRam5-Jun-08 2:04
ChandraRam5-Jun-08 2:04 
GeneralRe: A Database Design Problem - Catalogue Pin
Cristoff5-Jun-08 2:46
Cristoff5-Jun-08 2:46 
GeneralRe: A Database Design Problem - Catalogue Pin
ChandraRam5-Jun-08 7:37
ChandraRam5-Jun-08 7:37 
GeneralRe: A Database Design Problem - Catalogue Pin
Cristoff6-Jun-08 4:49
Cristoff6-Jun-08 4:49 
QuestionHow to combine 3 tables with Joins? Pin
Michiel5-Jun-08 1:21
Michiel5-Jun-08 1:21 
AnswerRe: How to combine 3 tables with Joins? Pin
Parwej Ahamad5-Jun-08 6:02
professionalParwej Ahamad5-Jun-08 6:02 
GeneralRe: How to combine 3 tables with Joins? Pin
Michiel5-Jun-08 21:27
Michiel5-Jun-08 21:27 
QuestionTableAdapters with Relation Pin
RoyRose785-Jun-08 0:55
RoyRose785-Jun-08 0:55 
AnswerRe: TableAdapters with Relation Pin
John_Adams5-Jun-08 6:16
John_Adams5-Jun-08 6:16 
QuestionQuery Problem Pin
H.A.Faheem4-Jun-08 20:21
H.A.Faheem4-Jun-08 20:21 
AnswerRe: Query Problem Pin
Alsvha4-Jun-08 20:31
Alsvha4-Jun-08 20:31 
GeneralRe: Query Problem Pin
H.A.Faheem4-Jun-08 20:33
H.A.Faheem4-Jun-08 20:33 
GeneralRe: Query Problem Pin
Alsvha4-Jun-08 23:59
Alsvha4-Jun-08 23:59 
QuestionSpliting a table. Pin
devboycpp4-Jun-08 9:36
devboycpp4-Jun-08 9:36 
AnswerRe: Spliting a table. Pin
Member 33013254-Jun-08 9:56
Member 33013254-Jun-08 9:56 
GeneralRe: Spliting a table. Pin
devboycpp5-Jun-08 2:38
devboycpp5-Jun-08 2:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.