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 the use of having index on table?

584


What are the different table types that are supported by teradata?

542


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

607


What is the difference between fastload and multiload?

801


What is bteq utility in teradata?

575






What is logical data model?

644


What is meant by Teradata Gateway?

586


What is the maximum number of dml can be coded in a multiload script?

623


i learn teradata,it is so intersting,now i want teradata certifications ,so any 1 help me to get teradata certifications TD 12 ? email:kdcrazyy@gmail.com

1775


Can we collect statistics on multiple columns?

570


Explain and compare pros and cons of start schemas?

549


If the PMON is not working then how do you manage and monitor all processes, resources and sessions etc.

1671


How to Extract data from multiple legacy systems?

576


What is the basic syntax for teradata select statement?

580


If RDBMS is halted what will you do ?

1711