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 |
|
umapathy
Starting Member
24 Posts |
Posted - 2007-04-19 : 06:45:37
|
Hi All,I have one table namely emp.i have some sample data in this table.name age Degree ExtraQualificationx 25 B.E MCPY 30 M.CA Z 40 M.E MCSDA 23 B.Sc B 45 B.Sc MCPC 50 B.A I want to select this table.it sholud display - hypen value in the colum those who are not yeild ExtraQualification. like the follwoingname age Degree ExtraQualificationx 25 B.E MCPY 30 M.CA -Z 40 M.E MCSDA 23 B.Sc -B 45 B.Sc MCPC 50 B.A -Please Reply for this issueREGARDSUmapathy |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2007-04-19 : 06:47:42
|
| How to you tell which records that require extra qualification? What are the rules for that?We can't read minds and are tired of guessing.Peter LarssonHelsingborg, Sweden |
 |
|
|
umapathy
Starting Member
24 Posts |
Posted - 2007-04-19 : 06:53:44
|
| it is like column FeildUmapathy |
 |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2007-04-19 : 06:53:44
|
| [code]select name, age, Degree, Coalesce(NullIf(ExtraQualification, ''), '-') as ExtraQualificationFrom emp[/code]Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
|
|
|