Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
akg64912
Starting Member
1 Post |
Posted - 2010-10-08 : 14:10:39
|
| CREATE VIEW [dbo].[MyView]ASSELECTFirstName = GivenName,DOB = DateTimeofBirth,Age = HLP.Age,AgeRank = CASE WHEN Math >= 40 THEN 1 WHEN Math <= 40 THEN 0 END CASE WHEN Sex = 'M' THEN 1 WHEN Sex = 'F' THEN 2 ENDFROMTableNameHAVING AgeRank >=3GOI am getting invalid column AgeRank. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|
|