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

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

976


Describe the set operators in teradata.

955


Describe primary index in teradata. And what are the available primary index types?

941


Can any one explain me the difference between BTEQ and MLOAD,TUMP. All canbe used for same purpose but still differnt methods. why ?

3541


What is basic teradata query language?

1033


What do you mean by caching in teradata?

996


What is a dimension table?

983


What type of indexing mechanism do we need to use for a typical data warehouse?

1083


What is a three-tier data warehouse?

1054


What is the syntax for case when statement?

1059


What are the design features involved in teradata?

976


How is MLOAD Teradata Server restarted after execution?

1171


What is teradata and why it is used?

1015


What are the functions performed by bynet?

983


What are the steps involved in the process flow of the sql statement through channel attached system?

1053