I have a legacy database that used the old "Numbering" method to store values.
ie. Item1, Item2, Item3, Item4, and Item5
I imported the old flat-file database into SQL Server 2000. I have an Items and Orders table. The Items table has the PK - ItemID, and has all the info on the items. The Orders Table has the PK-ItemsID stored in the Item1, Item2, Item3, Item4, and Item5 fields in the Orders table.
I can't figure out how to link the two tables together. I can't link the ItemID to ALL five Item1-5 otherwise it doesn't return anything.
I would like to pull all the Item1-5 and return their descriptions.
ie. Item1, Item2, Item3, Item4, and Item5
I imported the old flat-file database into SQL Server 2000. I have an Items and Orders table. The Items table has the PK - ItemID, and has all the info on the items. The Orders Table has the PK-ItemsID stored in the Item1, Item2, Item3, Item4, and Item5 fields in the Orders table.
I can't figure out how to link the two tables together. I can't link the ItemID to ALL five Item1-5 otherwise it doesn't return anything.
I would like to pull all the Item1-5 and return their descriptions.