R Reez Registered User. Local time Today, 04:40 Joined Nov 11, 2008 Messages 23 Nov 14, 2008 #1 Hey If I have one column, and I want to split the numbers into 2 columns such that these 2 columns can't have the same values at the same row.
Hey If I have one column, and I want to split the numbers into 2 columns such that these 2 columns can't have the same values at the same row.
Rabbie Super Moderator Local time Today, 12:40 Joined Jul 10, 2007 Messages 5,906 Nov 14, 2008 #2 You will need to give us more information about your data so we can help you
WayPay Registered User. Local time Today, 13:40 Joined Nov 3, 2008 Messages 118 Nov 15, 2008 #3 You will have to create 1 unique index on both columns: Code: CREATE [ UNIQUE ] INDEX [I]index[/I] ON [I]table[/I] ([I]field[/I] [ASC|DESC][, [I]field[/I] [ASC|DESC], ...]) [WITH { PRIMARY | DISALLOW NULL | IGNORE NULL }]
You will have to create 1 unique index on both columns: Code: CREATE [ UNIQUE ] INDEX [I]index[/I] ON [I]table[/I] ([I]field[/I] [ASC|DESC][, [I]field[/I] [ASC|DESC], ...]) [WITH { PRIMARY | DISALLOW NULL | IGNORE NULL }]