Kinderly Wade
asked on
MS query to obtain a single row of data with multile rows
Dear experts,
I would like to find out how can I modify my query to change the way my query result displays.
Here is my query:
SELECT product_id, warehouse_loc
FROM inventory
ORDER BY product_id
My display result will look like this:
product_id warehouse_loc
NX-1233-01 B1-2
NX-1223-01 B2-2
Nx_1223-01 B3-1
Is there a way that I can modify my result to look like this:
product_id warehouse_loc
NX-1233-01 B1-2
B2-2
B3-1
Thanks
I would like to find out how can I modify my query to change the way my query result displays.
Here is my query:
SELECT product_id, warehouse_loc
FROM inventory
ORDER BY product_id
My display result will look like this:
product_id warehouse_loc
NX-1233-01 B1-2
NX-1223-01 B2-2
Nx_1223-01 B3-1
Is there a way that I can modify my result to look like this:
product_id warehouse_loc
NX-1233-01 B1-2
B2-2
B3-1
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Do you want 3 rows with blank in 2 and 3rd row for first column?
<<For example, in SSIS in the textbox for the product_id column the HideDuplicates property can be set to True, which would blank out all 'duplicates' beyond the first row.>>
Same is true in the Access report writer, but not in a query.
Jim.
Same is true in the Access report writer, but not in a query.
Jim.
typo correction, in my original comment I had SSIS instead of SQL Server Reporting Services (SSRS). Corrected.
For example, in SQL Server Reporting Services (SSRS) in the textbox for the product_id column the HideDuplicates property can be set to True, which would blank out all 'duplicates' beyond the first row.