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 / apurva kumar

UPDATE table
SET Gender = CASE
WHEN Gender = 'Male' THEN 'Female'
ELSE 'Male'
END

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the updated features of teradata?

586


What is a dimension table?

610


What can be achieved by using the teradata rdbms?

629


any one answer me how they can analyzing the project using data ware housing?

2032


My table got locked during mload due to a failed job. What do I do to perform other operations on it?

684






Give a justifiable reason why Multi-load supports NUSI instead of USI.

682


What are the available primary index types in teradata.

591


Can we collect statistics on table level?

607


What do you mean by fastexport in teradata?

561


How do you create tables? Exact syntax, and create profiles, users in teradata?

563


What is the difference between fastload and multiload? Which one is faster?

601


What is meant by a dispatcher?

572


Describe primary index in teradata?

591


What are the newly developed features of Teradata?

573


What is real time and near real time data warehousing?

678