I have two tables.
Table1 stores all headings
Table2 stores all detailed items which should belong to one of headings.
Both headings and items have a key(integer). If an item belongs to the heading, then that HeadingKey is the closest one to the ItemKey and must smaller than ItemKey.
Now I want to assign HeadingID to Items belong to that heading.
Can anybody point a way to do this?
Thanks!
Table1 stores all headings
Table2 stores all detailed items which should belong to one of headings.
Both headings and items have a key(integer). If an item belongs to the heading, then that HeadingKey is the closest one to the ItemKey and must smaller than ItemKey.
Now I want to assign HeadingID to Items belong to that heading.
Can anybody point a way to do this?
Thanks!