I have a table, the table contains:
Code order jobseqno LongDesc
123 1234 1 ToothPaste
123 1234 1 ToothPAste 123
123 1234 1 ToothPAste 125
123 1234 1 ToothPAste 126
124 1234 1 ToothBrush 120
124 1234 1 ToothBrush 129
124 1234 1 ToothBrush 156
The result must be:
Code order jobseqno LongDesc
123 1234 1 ToothPaste
124 1234 1 ToothBrush 120
How can I do that? The Code column is important; if I catch First Code 123, ToothPaste is enough, I don’t need 123 125 126 version. I need a function not Top() not max()? I need second table I need only which has first code(barcode) I must add second table?
Your explanation of what you need is a bit confusing, but based on your desired result: