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

  • Home
  • SEARCH
  • 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 6529547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:38:57+00:00 2026-05-25T09:38:57+00:00

Is it possible to join multiple row values to a single row? The stored

  • 0

Is it possible to join multiple row values to a single row? The stored procedure from where I acquire the data that I use return multiple, almost identical rows except that the category-column dfferentiates for products that have been assigned multiple categories. I would like to consolidate these categories to one column, separated by new lines. Example data:

Name        Article number   Sales    Sales Category
------------------------------------------------
Product 1   2059102-1        20520    Retailer 1
------------------------------------------------
Product 1   2059102-1        20520    Retailer 2
------------------------------------------------
Product 1   2059102-1        20520    Retailer 3
------------------------------------------------
Product 2   2059102-2        2050     Retailer 1
------------------------------------------------
Product 2   2059102-2        5302     Retailer 3

Desired result:

Name        Article number   Sales    Sales Category
------------------------------------------------
Product 1   2059102-1        20520    Retailer 1
                                      Retailer 2
                                      Retailer 3
------------------------------------------------
Product 2   2059102-2        2050     Retailer 1
                                      Retailer 3

Thank you!

  • 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-25T09:38:57+00:00Added an answer on May 25, 2026 at 9:38 am

    Create an RDL table and setup a Grouping on the Detail section of the table with two grouping expressions (so you have a single Grouping in the Table Details, but with multiple grouping expressions). The grouping expressions should be one for each of the fields: Name, Article number.

    Then put a column in the RDL table for each field (Name, Article number, Sales, Sales Category). The trick is putting a List control in the Sales Category cell. In the list add a textbox for the “Sales Category” field and I think you’ll get the result you want.

    There is also some nasty SQL tricks for “row concatenation”, but that is not very maintainable IMHO.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: SQL - how to SELECT multiple tables and JOIN multiple rows from
I have an application that needs to join tables from multiple databases into a
Possible Duplicate: SQL left join vs multiple tables on FROM line? SELECT messages.message_title, messages.message_content,
Is it possible to return multiple entities from a LinqToSql (or EF) query (the
I'm trying to create a single query containing optional aggregate values from multiple tables
Possible Duplicate: MySQL delete row from multiple tables I have 5 tables: members member_videos
Is it possible to open 2 documents from an xQuery and do a join
I want to be able to use multiple keys to join two tables. Is
Is it possible to select multiple tables and make inner join on one of
Due to a need to join multiple tables in a single query, I am

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.