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 / srinu

update stud set gender= decode(gender,'M','F','F','M')

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by teradata intellicloud?

593


What are the different design perspectives used in teradata?

548


What is a level of granularity of a fact table?

637


Difference between inner join and outer join?

582


Which is faster fastload or multiload?

593






What is teradata? Also, list out some of the primary characteristics of teradata.

577


What is teradata?

644


How do you do backup and recovery in teradata?

545


What interface is used to connect to windows based applications?

580


What is node? How many nodes and amps used in your previous project?

671


What is meant by a Least Cost Plan?

618


Explain the term 'database' related to relational database management system?

573


How many sessions of MAX is PE capable of handling at a particular time?

589


What is a node in teradata? Explain

599


What is primary index and secondary index?

568