Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Filter Records in SQL Confluence based on VARCHAR or TEXT data

Dhiraj Kr_ Gupta
Contributor
February 6, 2024

I have a table Transformer which contains  columns NAME, Owner and ID

Name Owner ID

Jack   Yes     125

John  Yes     162

Gray   No      729

Shui    No      625

Dhiraj Yes      728

When I am retrieve the records based on WHERE Owner = 'Yes' or 'No', it does not returning anything, or any thing based on Text or Varchar

But it is returning when I am retrieving based on ID., Then it is working fine

Please Help me !!!!!

 

2 answers

2 accepted

3 votes
Answer accepted
Stiltsoft support
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 6, 2024

Hi @Dhiraj Kr_ Gupta ,

The issue is in your WHERE clause, please try

WHERE 'Owner' LIKE "Yes"

Dhiraj Kr_ Gupta
Contributor
February 7, 2024

Thank You Very Much

1 vote
Answer accepted
Manne Kjærby - ProProces
Atlassian Partner
February 6, 2024

Hi Dhiraj.

I believe it should look like this:

'Owner' = "Yes"

Dhiraj Kr_ Gupta
Contributor
February 7, 2024

Thankyou Very Much

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events