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

I am not sure whether decode will work in teradata 12.0 but case statement can be used.

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

Is This Answer Correct ?    24 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bteq script in teradata?

630


What are the main components of teradata system?

580


What are the enhanced features in teradata v2r5 and v2r6?

689


What is the multi-insert?

607


Highlight a few of the advantages that ETL tools have over Teradata.

609






In Teradata, how do we Generate Sequence?

601


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

1602


In the Primary Index, what is the score of AMPs that are actively involved?

573


What is the meaning of Caching in Teradata?

689


What happens when a node suffers a downfall?

666


What are the various indexes in teradata? How to use them?

566


What is meant by a Parsing Engine?

705


How to load specific no.of records using bteq, or fastload,or multiload

1315


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

587


Explain fallback in teradata?

602