I am not sure how to do this but I have 2 tables Items and Itemdetails and I am looking to get the info in one row from both tables
Items table
ItemID Name
------ ----------
80015 CLS SB
90001 Int Line
90586 Deep B44
Itemdetails table
RefID Location QTY
------ --------- ---
80015 CA 50
80015 NY 100
80015 IL 5000
90001 CA 0
90001 NY 10000
90586 FL 25
The way i want to get the data is in one row like this:
80015 CLS SB CA 50 NY 100 IL 5000 FL 0
90001 Int Line CA 0 NY 10000 IL 0 FL 0
90586 Deep B44 CA 0 NY 0 IL 0 FL 25
hope someone can help me with example or something, i been googling for this, maybe i dont know the terms to search
Items table
ItemID Name
------ ----------
80015 CLS SB
90001 Int Line
90586 Deep B44
Itemdetails table
RefID Location QTY
------ --------- ---
80015 CA 50
80015 NY 100
80015 IL 5000
90001 CA 0
90001 NY 10000
90586 FL 25
The way i want to get the data is in one row like this:
80015 CLS SB CA 50 NY 100 IL 5000 FL 0
90001 Int Line CA 0 NY 10000 IL 0 FL 0
90586 Deep B44 CA 0 NY 0 IL 0 FL 25
hope someone can help me with example or something, i been googling for this, maybe i dont know the terms to search