7webcreator
Member
Yes indeed, the exhibitors table has one row per exhibitor and that is exactly what I was looking for. However, during the process of pulling the contact details from the orders table, only the first entry relative to each exhibitor has been selected. As you know, the orders table contains many Ids for one exhibitor.
Example: let's say exhibitors table has 4 different exhibitors (a, b, c, d) and orders table has 4 exhibitors visiting several shows (1, 2, 3). So a is visiting shows 1, 2, 3 and exhibitor b is visiting show 3 and etc. It occurs that exhibitor "a"has changed its contact details when visiting show 3.
My question is how should be the code to get it selects the last entry of exhibitor a?
Example: let's say exhibitors table has 4 different exhibitors (a, b, c, d) and orders table has 4 exhibitors visiting several shows (1, 2, 3). So a is visiting shows 1, 2, 3 and exhibitor b is visiting show 3 and etc. It occurs that exhibitor "a"has changed its contact details when visiting show 3.
My question is how should be the code to get it selects the last entry of exhibitor a?