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

If I wanted to run a TPump job only once per day - basically working on a file that is produced once per day - how would you set up the parameters for that sort of job ?

1893


How is the teradata different from oracle?

623


What is the basic syntax for teradata select statement?

572


What is a three-tier data warehouse?

625


How is MLOAD Client System restarted after execution?

595






Comment whether bottleneck is an error or not.

615


What do you mean by teradata intelliflex?

625


Define views in teradata with syntax.

636


What is real time and near real time data warehousing?

670


How would you load a very large file in teradata in general? What utility would you use for it? Why?

593


What is bteq utility in teradata?

567


What is teradata?

644


What are teradata utilities?

583


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

596


While creating table my dba has fallback or no fallback in his ddl. What is that?

686