Using both 'AND' 'OR' keyword search for keywords
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2023 04:35 AM
Hi All,
I have to query records based on the following keywords in the work notes or comments in the incident table
(user OR username OR email OR id) AND (pass OR password OR passwd OR key)
I need to use both AND OR Boolean operations for filtering this using the keyword. Can anyone help me on this?
I tried using only 'OR' keyword but need to use 'AND' also, how can I do it?
Thanks,
RFJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2023 05:38 AM
Hi @RFJ1 ,
According to your requirement: "(user OR username OR email OR id) AND (pass OR password OR passwd OR key)" I would create it as below:
User AND pass or password or passwd or key OR
username and pass or password or passwd or key OR
email and pass or password or passwd or key OR
id and pass or password or passwd or key
Above should resolve your question. If you need more specified help, please let me know which table and field your condition should run on, as I don't think you will have user OR username OR email OR id coming from the work notes or comments field.
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2023 06:01 AM
Hi @AndersBGS ,
I am searching in incident table and finding any records that may contain sensitive info like password or username in worknotes and comments. I will try your method.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2023 10:35 PM
Hi @AndersBGS ,
What is the difference between small case 'and or' compared to upper case 'AND OR' from your response?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 12:13 AM
Hi @RFJ1 ,
The small or is Description contains XX or XX, where as the big OR is all these conditions is true OR all these conditions is true - see example below:
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/