id name gender
1 Ram Female
2 Kumar Female
3 sathish Female
4 Santhya Male
5 Durga Male
6 Priya Male

This is my input...how to change Gender Male to Female &
Female to Male??? Write sql query for this question???

Answer Posted / ankal

update stud set gender=
case gender when'male' then'female'
else 'male' end;

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a level of granularity of a fact table?

644


Which is faster fastload or multiload?

600


What are the commands to make a new table, change a table and remove a table in teradata?

615


What is logical data model?

644


Can we collect statistics on multiple columns?

570






What is the syntax for case when statement?

591


What is smp and mpp platforms?

531


How can we check the version of Teradata that we are using currently?

595


if collect stats but it show low confidence why?

1194


What is the use of virtual processor connectivity in teradata?

574


Explain vproc in teradata?

566


how do you manage the production space. what are the proactive methods you can take ?

1479


Why is the case expression used in teradata?

595


Backup Script was blocked you are unable to archive the data now. how do you analyze it and where do you identify ?

1609


What is upsert statement in teradata?

618