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 uses of fact table and dimension table in banking project?

4556


Can you fastexport a field, which is primary key by putting equality on that key?

1178


What happens in a conflict? How do you handle that?

1048


What are the components used in smp and massively parallel processing (mpp) machines?

1057


Can we have two time dimensions in a schema(either star or snow flake)? For ex if we want joining date of employee and if we want today's sales with time whether can we have two time dimensions for accommodating above tasks?

2121


What is the particular designated level at which a LOCK is liable to be applied in Teradata?

1048


Which is faster fastload or multiload?

1117


What are default access rights in teradata?

1124


What does Amp contain and what are all the operations that it performs?

1006


Explain parsing engine in teradata?

1093


What are the advantages of teradata?

1017


Explain BYNET.

1005


How many sessions of MAX is PE capable of handling at a particular time?

1082


What are the different design perspectives used in teradata?

983


Explain teradata architecture in detail with a diagram.

1114