troubleshooting Question

data  to appear in single rows avoiding nulls

Avatar of sqlcurious
sqlcuriousFlag for United States of America asked on
Microsoft SQL Server 2008MySQL Server
6 Comments1 Solution213 ViewsLast Modified:
Hi experts below is the data I got after stripping commas and inserting data column at a time :
id      Customer_No      Inventory_No      Price      Qty
1      1022                       98830057                   NULL      NULL
2      1022                      98830064                   NULL      NULL
3      1022                      NULL                   60.00      NULL
4      1022                      NULL                  90.00      NULL
5      1022                      NULL                  NULL      1
6      1022                      NULL                  NULL      1

But I would need data in the format

id      Customer_No      Inventory_No      Price      Qty
1      1022                       98830000                   60.00      1
2      1022                      98830001                   90.00      1

Please help!
Attached is the file that I used to insert in table 1
Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros