Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 21 AUG 2003 01:41:10PM b cameron Works Member wrote:

If field of CUSTOMERS is multivalued and I want to exclude certain values from the listing how is that accomplished with RList?

Example…

LIST CUSTOMERS FLD2

Output

0001 Bob's Stores

            JimBo's Stores
            MaryEllens Stores

0002 Bob's Stores

            Gramma's Stores

I would like to

LIST CUSTOMERS IF FLD2 # "Bob]" FLD2

and get

0001 JimBo's Stores

            MaryEllens Stores

0002 Gramma's Stores


At 21 AUG 2003 01:57PM Richard Hunt wrote:

Given your select statement of…

LIST CUSTOMERS IF FLD2 # "Bob]" FLD2

use…

LIST CUSTOMERS LIMIT FLD2 # "Bob]" FLD2


At 21 AUG 2003 01:57PM Don Miller - C3 Inc. wrote:

Your request


LIST CUSTOMERS FLD2

Output

0001 Bob's Stores

JimBo's Stores

MaryEllens Stores

0002 Bob's Stores

Gramma's Stores

I would like to

LIST CUSTOMERS IF FLD2 # "Bob]" FLD2

and get

0001 JimBo's Stores

MaryEllens Stores

0002 Gramma's Stores


LIST CUSTOMERS WITH FLD2 # "Bob]"

LIMIT FLD2 NOT "Bob]"

FLD 2

This handles the Multivalued issue.

HTH

Don M.


At 21 AUG 2003 02:01PM Don Miller wrote:

Richard ..

It works better if you use the WITH clause in conjunction with the LIMIT clause. Otherwise, you'll get a lot of unwanted empty items.

LIST CUSTOMERS WITH FLD2 # "Bob]"

.. and then the LIMIT statement

LIMIT FLD2 NOT "Bob]"

FLD2

Don M.


At 21 AUG 2003 02:09PM b cameron wrote:

That was what I was looking for, thank you both very much!!

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/77f8a184b08cb33c85256d8900612724.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1