Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting the records if
Message
From
12/06/2008 10:38:35
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Selecting the records if
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01323469
Message ID:
01323469
Views:
56
I want to select the records like

If grade=F
message="Very poor fail"
If grade=E
message="very poor
endif
endif

select code,name,grade,;
CAST(SUM(IIF(grade="F",1,0)) AS I) "Very poor fail"
CAST(SUM(IIF(grade="E",1,0)) AS I) "Very poor "
..........
from student
thanks
Next
Reply
Map
View

Click here to load this message in the networking platform