# Brackets in User Queries

**URL:** <https://forum.metasfresh.org/t/brackets-in-user-queries/1081>\
**Category:** Developers\
**Tags:** english\
**Created:** [May 30, 2018, 11:03am UTC](https://forum.metasfresh.org/t/brackets-in-user-queries/1081 "2018-05-30T11:03:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![metasnw](https://forum.metasfresh.org/user_avatar/forum.metasfresh.org/metasnw/32/23_2.png) [@metasnw](https://forum.metasfresh.org/u/metasnw)\
**Post date:** [May 30, 2018, 11:03am UTC](https://forum.metasfresh.org/t/brackets-in-user-queries/1081/1 "2018-05-30T11:03:28Z")

</div>

Hi,

does anyone know if I can use brackets in user queries?

example:

```auto
AND (C_Country_ID = 107 or C_Country_ID = 231)
OR C_Country_ID IN (107, 231)

```

cheers  
Norbert

---

<div class="post-metadata">

**Author:** ![cristinamghita](https://forum.metasfresh.org/user_avatar/forum.metasfresh.org/cristinamghita/32/543_2.png) [@cristinamghita](https://forum.metasfresh.org/u/cristinamghita)\
**Post date:** [May 30, 2018, 12:30pm UTC](https://forum.metasfresh.org/t/brackets-in-user-queries/1081/2 "2018-05-30T12:30:34Z")

</div>

Hi!

No, is not possible. We can not identify the search field like this.  
Neither can you write `C_Country_ID IN (107, 231)` .

You can write only sql that can be also generated using advanced search in swing.

Best Regards,  
Cristina
