Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get total records on filtered index?
Message
From
25/05/2004 03:03:40
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00906796
Message ID:
00906801
Views:
12
>I have a table that has and index with a filter.
>
>Example: index on acct_no tag acct_no filter to_update = .t.
>
>...I know their are say 10,000 records and 1000 have the to_update field = true but how can I quickly store to a variable the total # of records when using the filteed index?
>
>Regards,
>Torrey

count to lnRecs

There are many other ways but if there isn't a good reason to seek another way this one should suffice.
PS: Do you have a good reason to create a filtered index.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform