D
David
There is an existing table containing data as follow
A Borrower1 Book1 DateOfReturn1
B Borrower1 Book2 DateOfReturn2
C Borrower1 Book3 DateOfReturn3
A Borrower2 Book4 DateOfReturn4
B Borrower2 Book5 DateOfReturn5
A Borrower3 Book6 DateOfReturn6
A Borrower4 Book7 DateOfReturn7
B Borrower4 Book8 DateOfReturn8
and we want to split it into two tables
<Table1>
ID1 Borrower1 Address1
ID2 Borrower2 Address2
ID3 Borrower3 Address3
ID4 Borrower4 Address4
<Table2>
BID1 ID1 Book1 DateOfReturn1
BID2 ID1 Book2 DateOfReturn2
BID3 ID1 Book3 DateOfReturn3
BID4 ID2 Book4 DateOfReturn4
BID5 ID2 Book5 DateOfReturn5
BID6 ID3 Book6 DateOfReturn6
BID7 ID4 Book7 DateOfReturn7
BID8 ID4 Book8 DateOfReturn8
Can we split the database to two without index easily with
queries ? And how to create index after spliting ?
A Borrower1 Book1 DateOfReturn1
B Borrower1 Book2 DateOfReturn2
C Borrower1 Book3 DateOfReturn3
A Borrower2 Book4 DateOfReturn4
B Borrower2 Book5 DateOfReturn5
A Borrower3 Book6 DateOfReturn6
A Borrower4 Book7 DateOfReturn7
B Borrower4 Book8 DateOfReturn8
and we want to split it into two tables
<Table1>
ID1 Borrower1 Address1
ID2 Borrower2 Address2
ID3 Borrower3 Address3
ID4 Borrower4 Address4
<Table2>
BID1 ID1 Book1 DateOfReturn1
BID2 ID1 Book2 DateOfReturn2
BID3 ID1 Book3 DateOfReturn3
BID4 ID2 Book4 DateOfReturn4
BID5 ID2 Book5 DateOfReturn5
BID6 ID3 Book6 DateOfReturn6
BID7 ID4 Book7 DateOfReturn7
BID8 ID4 Book8 DateOfReturn8
Can we split the database to two without index easily with
queries ? And how to create index after spliting ?