General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Selecting the records if
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only