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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:31:13+00:00 2026-05-26T05:31:13+00:00

Hi I have problem with fetching data from one column separated with comma, My

  • 0

Hi I have problem with fetching data from one column separated with comma,

My problem is:

 Table1               
 ID | Cat          
--------
 1  | XY

 2  | ER

 3  | FF

Table2               
Id | Text | Text2 | Table1ID | Text3 | text3          
--------------------------------------------------
1  |  --  |  --   | 1,2,3    |  ---  | ---

2  |  --  |  --   | 3,1,2    |  ---  | ---

3  |  --  |  --   | 1,3,4    |  ---  | ---

I need SELECT query to fetch data from Table1 column Cat where Table1.ID=Table2.Table1ID and i got only one Cat but i need all from Table2.Table1ID

This is my query now:

SELECT * FROM Table2, Table1 
        WHERE Table2.Table1ID=$ID 
        AND Table2.Table1ID=Table1.Id
        AND Table2.Table1ID

I only got one data from Table1ID and everything behind comma is invisible

thx for help

  • 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-26T05:31:13+00:00Added an answer on May 26, 2026 at 5:31 am
    SELECT * FROM Table2, Table1 
            WHERE Table1.Id=$ID 
            AND FIND_IN_SET(Table1.Id, Table2.Table1ID) <> 0
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem when I try insert some data to Informix TEXT column via
My application is fetching a data dynamically from MYSQL and displaying. The Problem is
I have a problem with a script timing out while fetching data form a
I have a problem fetching values from a MySQL cursor. I create a temporary
I have a page which is fetching data from a webservice using async call.
I have problem creating new instance of excel 2007 using VBA (from Access 2002).
I'm currently facing in problem using Core Data. I have two entities A and
I am working on a iphone/Ipod touch project involving saving and fetching data from
I am fetching the youtube viewcount from the Youtube XML data obtained from the
I have a TableView loading a custom cell and loading the data from a

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.