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 / kumar amit ranjan

UPDATE stud SET gender ='Z' WHERE gender ='F';
UPDATE studmaster SET gender ='F' WHERE gender ='M';
UPDATE studmaster SET gender ='M' WHERE gender ='Z';

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain BYNET.

613


When tpump is used instead of multiload?

633


There is a column with date in it. If I want to get just month how it can be done? Can I use sub string?

647


Explain the advantages of partitioned primary index in a query?

567


What is inner join and outer join?

620






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

601


What is smp and mpp platforms?

531


How does hashing happens in teradata?

624


What are different table types used in teradata?

590


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


What are the various indexes in teradata?

571


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

596


What does sleep function does in fast load?

623


What are the functions of a Parser?

616


What are the main components of teradata system?

585