×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Filter Question?

Filter Question?

Filter Question?

(OP)
Is there any way I can put the value of number of records selected by a set filter command in a variable.
Example:
case (table1.field1 == 'a') and (table2.field2) == 'b' then
Set filter to (table.field = 'aa')
I want the number of records that meet this particular condition to be stored in a varible.

Thanks

RE: Filter Question?

You'll need 1 more command.  Something like:

COUNT FOR table.field = 'aa' TO myVariable

Jim

RE: Filter Question?

Hi

SELECT A.* FROM MyTable A, table1 B, table2 C ;
   WHERE A.field = 'aa' AND ;
         B.field1 == 'a' AND C.field2 == 'b'
myCount=RECCOUNT()
****************************
OR

instead of set filter to.. you can use..
SELECT myTable
COUNT FOR field="aa" TO myCount

(if the count is in myTable)
(You can also use the SET RELATION and use the FOR conditions include the related table conditions.)
****************************

Hope this helps

ramani
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close