由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - how to separate the table
相关主题
最近写了不少SQL script,请大牛评价下属于什么水平interview question (SQL)
SQL combine two tables into one table and add a new columnmysql 问题 (转载)
Re: how to separate the table ---PS请问这个query怎么做
replicaton: error 14010how to write this query
merge replication: error 14010, after the step "bulk copied data into table 'sysmergesubsetfilter'"Access 里面两个 column不一样的table 能combine 到一起吗?
how to see all the tables in SQL*PLUS?在没有Key的情况下,怎么update一个table的内容到另一个table?
Can I create thousands table in one...Common Table Expression 问题
急问一个关于T-SQL的问题,谢谢有包子!sql procedure 来rank不同table里面的数据
相关话题的讨论汇总
话题: table话题: separate话题: catagory话题: languages话题: than
进入Database版参与讨论
1 (共1页)
a***h
发帖数: 29
1
how to separate the table
i am now establish a web site selling products.
1. i use SQL Server.
2. we have ten over ten thousand itmes for sale.
3. the web site is presented in three languages.
4. some items have more than one catagory code. for example,
a book can be idendified as a novel as well as a foreign
literature, therefore, it has two catagory codes, so people
can look for it from two different catagories.
5. although the book has more than one catagory code, it has
only ONE product cod
s*k
发帖数: 144
2
DB design is an art rather than a science,
There is no absolutely correct or incorrect.
So below is only my suggestion:
First consider your application scenairo:
Your website is presented in three languages,
but I think most of your customer will not want
to read only one of these languages at a given time.
So, it is no need to clutter information of
three languages in one table.
Second, in general one huge table is difficult
to program and maintain and which always need
more resource than you n

【在 a***h 的大作中提到】
: how to separate the table
: i am now establish a web site selling products.
: 1. i use SQL Server.
: 2. we have ten over ten thousand itmes for sale.
: 3. the web site is presented in three languages.
: 4. some items have more than one catagory code. for example,
: a book can be idendified as a novel as well as a foreign
: literature, therefore, it has two catagory codes, so people
: can look for it from two different catagories.
: 5. although the book has more than one catagory code, it has

w*********n
发帖数: 84
3
Some personal idea:
Do you consider the expansion of the languages?
if someday, another language is introduced, the 2nd solution will spend
more effort to achieve; in this sense the 1st one is good.
To manipulate a bigger record like the table2 in 2nd solution will
cost too much. I recommend you to calculate the block size and the record
size, you will get a better comparison among the two.
Remember the Normal Form consideration?
In the 1st solution, it's in 3NF, better than 2nd, which has trans

【在 a***h 的大作中提到】
: how to separate the table
: i am now establish a web site selling products.
: 1. i use SQL Server.
: 2. we have ten over ten thousand itmes for sale.
: 3. the web site is presented in three languages.
: 4. some items have more than one catagory code. for example,
: a book can be idendified as a novel as well as a foreign
: literature, therefore, it has two catagory codes, so people
: can look for it from two different catagories.
: 5. although the book has more than one catagory code, it has

1 (共1页)
进入Database版参与讨论
相关主题
有包子!sql procedure 来rank不同table里面的数据merge replication: error 14010, after the step "bulk copied data into table 'sysmergesubsetfilter'"
SQL combine two columns from two different tables no shared (转载)how to see all the tables in SQL*PLUS?
SQL question...Can I create thousands table in one...
SQL question: update a field急问一个关于T-SQL的问题,谢谢
最近写了不少SQL script,请大牛评价下属于什么水平interview question (SQL)
SQL combine two tables into one table and add a new columnmysql 问题 (转载)
Re: how to separate the table ---PS请问这个query怎么做
replicaton: error 14010how to write this query
相关话题的讨论汇总
话题: table话题: separate话题: catagory话题: languages话题: than