C
CarolM
Hi
I have a query that is written as follows which someone kindly helped me
with and this works perfectly. When i run this query the heading is
productcode and all the codes are listed underneath that heading.
SELECT [Prod 1] AS productcode FROM [PICKSHEETUNI]
UNION ALL SELECT [Prod 2] FROM [PICKSHEETUNI]
UNION ALL SELECT [Prod 3] FROM [PICKSHEETUNI]
UNION ALL SELECT [Prod 4] FROM [PICKSHEETUNI]
UNION ALL SELECT [Prod 5] FROM [PICKSHEETUNI]
UNION ALL SELECT [Prod 6] FROM [PICKSHEETUNI]
UNION ALL SELECT [Prod 7] FROM [PICKSHEETUNI]
UNION ALL SELECT [Prod 8] FROM [PICKSHEETUNI];
What i would like to do now is add in two further columns but ive tried
various different things and cant seem to get it right.
The two columns that i need to add in are location (loc 1, loc 2, loc 3, loc
4 etc etc) and (qty 1, qty 2, qty 3, qty 4 etc etc).
The end result should in theory look something like:-
productcode location quantity
714335469010 H69 1
903548103919 F69 2
Thanks in advance for your help, as always.
Carol
I have a query that is written as follows which someone kindly helped me
with and this works perfectly. When i run this query the heading is
productcode and all the codes are listed underneath that heading.
SELECT [Prod 1] AS productcode FROM [PICKSHEETUNI]
UNION ALL SELECT [Prod 2] FROM [PICKSHEETUNI]
UNION ALL SELECT [Prod 3] FROM [PICKSHEETUNI]
UNION ALL SELECT [Prod 4] FROM [PICKSHEETUNI]
UNION ALL SELECT [Prod 5] FROM [PICKSHEETUNI]
UNION ALL SELECT [Prod 6] FROM [PICKSHEETUNI]
UNION ALL SELECT [Prod 7] FROM [PICKSHEETUNI]
UNION ALL SELECT [Prod 8] FROM [PICKSHEETUNI];
What i would like to do now is add in two further columns but ive tried
various different things and cant seem to get it right.
The two columns that i need to add in are location (loc 1, loc 2, loc 3, loc
4 etc etc) and (qty 1, qty 2, qty 3, qty 4 etc etc).
The end result should in theory look something like:-
productcode location quantity
714335469010 H69 1
903548103919 F69 2
Thanks in advance for your help, as always.
Carol