Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 are the various indexes in teradata? Why are they preferred?

1053


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

999


If a Node is busy what are the steps you can take to avoid ?

2457


Explain some differences between mpp and smp?

1157


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

2521


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

1137


Mention the procedure via which, we can run Teradata jobs in a UNIX environment.

1038


What are the main components of teradata system?

1193


Which is more efficient group by or distinct to find duplicates?

1130


Highlight the limitations of TPUMP Utility.

1174


How do you determine the number of sessions?

1106


List out teradata data types?

1064


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

1073


Define views in teradata with syntax.

1127


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

1297