Book a Demo

Author Topic: Unique Index creation  (Read 2603 times)

krutoj_pablo

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Unique Index creation
« on: February 14, 2007, 06:42:21 am »
Hi.

Is there any way to create unique index in a table using EA which consists of 2 or more columns ?


«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Unique Index creation
« Reply #1 on: February 14, 2007, 07:40:11 am »
Yes.

Create the columns as normal; check the Unique and Not Null boxes if and as appropriate for your model.

Once that's done and all is saved, open up the Operations dialog for the table (you can use the F10 shortcut as you would for a class). Create a new index - which is just an operation as far as this profile is concerned - by providing a name and selecting "unique" from the stereotype drop-down. You must now save the index by clicking the Save button.

Once you've saved the new index, click the Columns tab. Using the drop-down, select and save (with the button) each column in order. If you get the order wrong, use the 'hands' to make adjustments. Save your work and you're done!

Once you have this working, you can shortcut the process a bit. I'll leave you to experiment with this if and as you require.

David
No, you can't have it!