Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 559829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:16:45+00:00 2026-05-13T12:16:45+00:00

I have an execl datasheet with data looking like this id desc part no

  • 0

I have an execl datasheet with data looking like this

id  desc        part no 1      Qty 1   part no 2   Qty 2   part no 3    Qty 3   
1   PartsName   382A012-3-0 3       382A023-3   3       382A012-25   3      

And need it to look like this

id  desc           part no          Qty
1    PartsName     382A012-3-0       3
1    PartsName     382A023-3/42-0    3
1    PartsName     382A012-25/86-0   3

This from a SQL Table so I could do it in SQL if that makes it easier

Anybody any suggestions as how to best to sort this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:16:45+00:00Added an answer on May 13, 2026 at 12:16 pm

    Simply make a UNION in the SQL

    SELECT id, desc, partNo, qty FROM parts 
    UNION SELECT id, desc, partNo2 as partNo, qty2 as qty FROM parts 
    UNION SELECT id, desc, partNo3 as partNo, qty3 as qty FROM parts 
    ORDER BY id
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an excel file that i need to open and search it. This
I have about 50 or so Excel workbooks that I need to pull data
So I have this Excel workbook which basically is supposed to be a data
I have an excel workbook which needs to query data from an HTTP server.
I have 12 excel files, each one with lots of data organized in 2
I have an excel sheet laid out like so: +--id---+--val--+--timestamp--+ | 01 | 1.2
I have data that I'm taking from an Excel sheet with the ultimate goal
This is more of a conceptual question than anything. I have a base class
I have a data processing system that generates very large reports on the data
I have a method that calls a Proc ad returns the data. But I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.