I have a small database with 2 tables. One is mybooks, one is myauthor. What I want to do is create a unique multiple column index from columns in each table. What I'd like is essentially this:
I've seen some examples, but none addresses creating the index from columns on different tables. I need to know if this can be done, and if so how? I have existing tables, so I'd like to be able to do it with ALTER TABLE commands if possible.
Any ideas would be greatly appreciated!
Peter V.
Code:
From books table: Title
From authors table: Name
New Unique Index: Title+Name
Where the New Unique Index is on the Books Table.
I've seen some examples, but none addresses creating the index from columns on different tables. I need to know if this can be done, and if so how? I have existing tables, so I'd like to be able to do it with ALTER TABLE commands if possible.
Any ideas would be greatly appreciated!
Peter V.