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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:37:37+00:00 2026-06-11T05:37:37+00:00

When I run the below query I get 3 rows instead of 4, SELECT

  • 0

When I run the below query I get 3 rows instead of 4,

SELECT *
FROM freelook
WHERE done_type IN ('14','27','28')

Because in 1 row the value is like this 1,14,27.This is the comma separated single value in one column.Like this I have many rows which have comma separated value for done_type.

I want it should separate the values and then check if it matches the given values.

My query is how to apply filter on such row where value is string which is comma separated value.
Please guide.

  • 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-06-11T05:37:37+00:00Added an answer on June 11, 2026 at 5:37 am

    To search for, say, 14 you could:

    ...
    WHERE
        done_type = '14'
        OR done_type LIKE '14,%'
        OR done_type LIKE '%,14'
        OR done_type LIKE '%,14,%'
    

    Rinse and repeat for 27, 28 and any other number you want to search for…

    This will, however, perform horribly (full table scan).

    Instead of putting paint on rust, better to cure the underlying problem1 and normalize the data by splitting to two tables.


    1 Of violating the principle of atomicity and therefore the 1NF.

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

Sidebar

Related Questions

I run the below query..... SELECT SUM(PAPostedTotalCostN) AS Total_Cost FROM PA01201 WHERE PA01201.PAcontid =
When I run the query below I get this message: SQL Error: ORA-00904: B.MEMBERS_COUNT:
So what I'm trying to do is: Run this query: SELECT FW_ArtSrcLink FROM FW_ArtSrc
I have the query below that when run it says that 325 rows were
i am trying to run the below script SELECT field_value FROM jos_js_res_record_values jrv INNER
i am useing the query below, when i run this query once per page
I can't seem to get this code to work. Can you run another query
I tried the below sql query INSERT INTO test.ACT_QUERY values(2139,2,'SELECT ''D'',ORDER_ID from dual'); When
Description: the query actually run have 4 results returned,as can be see from below,
When i run the below code I am getting error like ex = {The

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.