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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:57:12+00:00 2026-05-17T23:57:12+00:00

I have an oracle table that has a column called system_access that has the

  • 0

I have an oracle table that has a column called system_access that has the following data:

Read Only, Write, read only, Admin
Read, Write, read only, Admin
Admin, Read Only (no), read only(see mgr), Admin

Based on the above sample data, I am unsure of my query to only retrieve records that match the exact words of “Read Only” and/or “read only”

I do not need the records that have the “Read Only (no)” with space then bracket after it or before it or “read only(see mgr)” with no space and bracket after it or before it.

So based on above sample data, I would only get back two rows only, i.e.:

Read Only, Write, read only, Admin
Read, Write, read only, Admin

As mentioned, only records that match exactly the string “Read Only” or “read only”

  • 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-17T23:57:12+00:00Added an answer on May 17, 2026 at 11:57 pm

    Sometimes it’s useful to add something to the string before you compare it, then every element follows the same format:

    with testData as
    (
      select 'Read Only, Write, read only, Admin' test from dual union all
      select 'Read, Write, read only, Admin'  test from dual union all
      select 'Admin, Read Only (no), read only(see mgr), Admin' test from dual
    )
    select * from testData
    where lower(test)||',' like '%read only,%';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an oracle table which has a column that stores XML in a
Given: Oracle 10.2g is the database I have a table called emp. emp has
I have a table that has a datetime column and I need to retrieve
I have a table called BUILD_INFO and it has the following columns: BUILD_ID BUILD_NAME
I have a table that has (among others) a timestamp column (named timestamp; it's
I have an entity that maps to an external oracle table which is one
Say I have an Oracle PL/SQL block that inserts a record into a table
I have this table in an Oracle DB which has a primary key defined
I have a column in a non-partitioned Oracle table defined as VARCHAR2(50); the column
I have two rows from a table that has many columns. How do 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.