Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select statement with count
Message
From
09/05/2003 17:23:14
 
 
To
09/05/2003 16:47:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00786834
Message ID:
00786956
Views:
27
Raj,

>
>select count("+col1+") as total;
> from chgnotce where not empty("+col1+") and Deleted() = .f. into cursor temp
>

That will return a count of all records....col1 is not even being evaluated, because it is inside of quotes (a string literal). It would be the same thing as putting empty("SOMETHING") in the query.

See Re: Select statement with count Thread #786834 Message #786849
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform