Is there anyway to make a secondary key in SQL?
Lets say I have a table with the columns ID, SECID1, SECID2
The key is ID, but I also want that SECID1, SECID2 work as a key, to guarantee that I don’t have 2 entries with the same SECID1 and SECID1.
If possible, how can I do this?
It is possible, here you have documentation and explanation:
http://www.w3schools.com/sql/sql_unique.asp