LloydDobler
Technical User
need to be able to make the following table structure:
issue#, date, cust, part1, qty1,part2, qty2, part3, qty3...(up to 6 parts)
look like:
issue date cust part qty
222 3/3/07 GM 123 4
222 3/3/07 GM 246 2
222 3/3/07 GM 444 7
223 3/8/07 GM 123 9
224 3/10/07 HONDA xyz 2
224 3/10/07 HONDA zxz 7
225 3/13/07 FORD bt9 9
One record in the DB can have up to 6 parts and 6 quantities selected, issue is UID. How do I show as the example? I've tried UNION but I'm getting 'error converting NVARCHAR to Float' after the 5th part# is added to my statement. Checked all syntax but can't seem to get over this hump. Maybe there's an easier way altogether?
"I don't want to sell anything, buy anything or process anything as a career. I don't want to sell anything bought or processed... or buy anything sold or processed... or process anything sold, bought or processed... or repair anything sold, bought or processed. You know, as a career, I don't want to do that."
issue#, date, cust, part1, qty1,part2, qty2, part3, qty3...(up to 6 parts)
look like:
issue date cust part qty
222 3/3/07 GM 123 4
222 3/3/07 GM 246 2
222 3/3/07 GM 444 7
223 3/8/07 GM 123 9
224 3/10/07 HONDA xyz 2
224 3/10/07 HONDA zxz 7
225 3/13/07 FORD bt9 9
One record in the DB can have up to 6 parts and 6 quantities selected, issue is UID. How do I show as the example? I've tried UNION but I'm getting 'error converting NVARCHAR to Float' after the 5th part# is added to my statement. Checked all syntax but can't seem to get over this hump. Maybe there's an easier way altogether?
"I don't want to sell anything, buy anything or process anything as a career. I don't want to sell anything bought or processed... or buy anything sold or processed... or process anything sold, bought or processed... or repair anything sold, bought or processed. You know, as a career, I don't want to do that."