Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / General DB Topics / General DB Topics / July 2004

Tip: Looking for answers? Try searching our database.

automatic spliting large table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
chao liu - 23 Jul 2004 06:28 GMT
Hi,

Thanks to your attention and time!

Now I have a table, say sampleTable, on which I would automatically (using
shell script like stuff) split it into several small tables according to the
first attribute.

Suppose the first attribute, A, has 100 possible values, say, a1, a2, ...,
a100, then the desired set of tables are table_1, table_2, ..., table_100,
where table_i contains all the tuples whose A is a_i.

Manually, I know that the following simple SELECT could generate the content
for table_i, (create table table_i select * from sampleTable where A = a1).
But I am not sure how to automated this process to generate all the 100
tables.

thanks,

Chao
Lee Fesperman - 28 Jul 2004 20:51 GMT
> Hi,
>
[quoted text clipped - 12 lines]
> But I am not sure how to automated this process to generate all the 100
> tables.

Exactly why are you doing this? If you are not placing each table on a separate physical
database, you are violating normalization. There is virtually no justification for such
denormalization.

Signature

Lee Fesperman, FirstSQL, Inc. (http://www.firstsql.com)
==============================================================
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS  (http://www.firstsql.com)

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.