Select to view content in your preferred language

Definition Query GUI - How to work?

105
3
Jump to solution
yesterday
BlakeMorrison
Frequent Contributor

BlakeMorrison_0-1763339646781.png

I feel like I used to be able to reach this state of definition query via the defintion query GUI. Nowadays I have to type that as SQL. I cannot find a way to produce "X and (Y or Z)" without SQL. If I edit that clause in the GUI, it will break.

 

Can anyone enlighten me as to what I'm doing wrong if anything?

0 Kudos
1 Solution

Accepted Solutions
BlakeMorrison
Frequent Contributor

Ok, I've stumbled through this. There are a couple things I was missing/misunderstanding.

  • The setting (cog icon) in the top right of the defintiion query allows changing what fields/values are displayed. Maybe default values changed here.
  • The indentation is actually "grouping" as opposed to a form of visual parentheses which is how I was imagining it working. Grouping means more than one..... You can't do the indent thing unless you have multiple clauses selected. That's what I was missing.

View solution in original post

3 Replies
BlakeMorrison
Frequent Contributor

Ok, I've stumbled through this. There are a couple things I was missing/misunderstanding.

  • The setting (cog icon) in the top right of the defintiion query allows changing what fields/values are displayed. Maybe default values changed here.
  • The indentation is actually "grouping" as opposed to a form of visual parentheses which is how I was imagining it working. Grouping means more than one..... You can't do the indent thing unless you have multiple clauses selected. That's what I was missing.
CalvinHarmin
Frequent Contributor

I wonder if there is a similar SQL gui editor like this from another software that is more obvious that could be used as an example of how this menu could be a little more user-friendly?

I also wish when using 'Not equal to' there was a checkbox to include (or Is Null) rather than making another duplicate line for that purpose. I have a lot of use cases where I'm specifying, essentially, "all values except this one" and I want that to include Nulls. If you don't specify that as an OR statement, Nulls won't be included. 

0 Kudos
AlfredBaldenweck
MVP Regular Contributor

If you'd like an improvement to the editor, I'd upvote this Idea: Consolidate Select by Attribute Expression Modes