|
Posted by Erland Sommarskog on 08/04/06 21:50
panic attack (tunc.ovacik@gmail.com) writes:
> thanks for your fast answers.
> there is one last thing that i need to ask...!!
> now i decided to partition the data vertically
> at this point there is one thing i need to ask...
>
> now here is the case :
>
> after partitioning the table it is gonna look like this:
>
> table 1
> -------------------------------------------------
> column1 column2 ... column250
> record1 record2 ... record250
>
>
> table2
> --------------------------------------------------
> column1 column2 ... column250
> record1 record2 ... record250
>
> at this point i need to combine these tables( mentioned above)
> vertically right?
>
> how am i gonna do the combine operation after partitioning the table
> into 2 or 3?
Hopefully there is a key in the data you import. Else you are in dire
straits. Say that columns 1 and 2 are the keys. Then you could define
a view as:
CREATE VIEW united AS
SELECT a.col1, a.col2, ... a.col250,
b.col251, ... b.col543
FROM tbl1 a
JOIN tbl2 b ON a.col1 = b.col1
AND a.col2 = b.col2
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
[Back to original message]
|