cancel
Showing results for 
Search instead for 
Did you mean: 

how to avoid: fields inserted in "where clause" are inserted automatically in "select"

Former Member
0 Kudos

Hi,

I don't want that fields inserted in "where clause" are inserted automatically in "select" because when I'm grouping some fields can't be in select clause.

How do I exclude these "where fields" from select?

Thanks,

Iasmini

Accepted Solutions (0)

Answers (1)

Answers (1)

abhilash_kumar
Active Contributor
0 Kudos

Hi Iasmini,

Create the report against the SQL Query via the 'Add Command' option. This way you can get rid of the field from the Select clause.

-Abhilash

Former Member
0 Kudos

Hi,

Thank you for a quick answer. Where can I find this 'Add Command' button?

My Crystal Reports' version is 11.5.12.1838 (XI R2)

Iasmini

abhilash_kumar
Active Contributor
0 Kudos

Go to the Database Expert > Expand the database connection > Double-click Add Command > Paste the SQL Query.

-Abhilash