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.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Query help

Author  Topic 

dnreddy
Starting Member

3 Posts

Posted - 2007-07-25 : 06:32:03
Hi

SQL> select * from info;

NAME GENDER
---------- -------
ram f
mohan f
lalitha m
radha m

MY PROBLEM IS WHERE GENDER='M' THAT SHOULD BE CONVERTED TO 'F' AND VICE VERSA. i.e

NAME GENDER
---------- -------
ram m
mohan m
lalitha f
radha f

how to write the query.
Please help me.


dnreddy

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-07-25 : 07:22:23
See this topic. Do you have the same teacher?
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=62834



E 12°55'05.76"
N 56°04'39.42"
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-07-25 : 07:42:56
moved from article discussion

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-07-25 : 08:30:25
Oh ! It's the popular sex change question


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-07-25 : 08:35:37
you want to kill me with laugher, don't you tan

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-07-25 : 08:38:14
I thought the original thread http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=62834 already did that ?

Maybe you missed that.


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-07-25 : 09:05:06
no the original one just started the job... looks like you're trying to finish it

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page
   

- Advertisement -