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 6080531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:04:19+00:00 2026-05-23T11:04:19+00:00

A database column contains following values SampleColumnValues T1 T2 T3,T4 T5,T6 T7 T8 When,

  • 0

A database column contains following values
SampleColumnValues
T1
T2
T3,T4
T5,T6
T7
T8

When, I try to read these values, it is perfectly possible using the IQueryable.Select() method to get this specific column from DB and convert it to an array using ToArray().
But, I also need the comma delimited values in the originally returned array as individual array elements.

For now, I have a separate method to do the additional splitting.
Can I achieve the same with stock methods available?

The resultant array I need should be like {T1, T2, T3, T4, T5, T6, T7, T8}

  • 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-23T11:04:20+00:00Added an answer on May 23, 2026 at 11:04 am
    string[] input = new string[] { "T1", "T2", "T3,T4", "T5,T6", "T7", "T8" };
    
    string[] output = input.SelectMany(item => item.Split(',')).ToArray();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a large mysql database table in which one column contains values ranging
There is a column in database which contains comma separated values like: 0.00,12.45,14.33 and
I have to map a lecagy database for read-only purposes that contains the following
I have an Oracle database column, say col1, that has the following values: Col1
I'm adding a new, NOT NULL column to my Postgresql database using the following
Database: Sql Server I have table column named page_text which contains following value I
Current situation: I have a database with following structure: Product Category (contains column product_id)
I have a database column that contains the contents of a file. I'm converting
we have a table in an Oracle Database which contains a column with the
I currently have a Postgres 8.4 database that contains a varchar(10000) column. I'd like

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.