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)