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

Write a program to show the parser component used in teradata?

548


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

593


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

609


Let us say there is a file that consists of 100 records out of which we need to skip the first and the last 20 records. What will the code snippet?

700


What do you mean by parsing?

629






Hi, If anyone has TD 14 Basics dumps or study materials, please share. nirmaaal1991@gmail.com

1958


How can bottlenecks be identified?

576


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?

636


What is teradata? Also, list out some of the primary characteristics of teradata.

577


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?

1614


tomorrow i have interview in infosys.can someone pour any suggestions or any interview questions. thank you

367


What are the different design perspectives used in teradata?

548


What do you mean by fastexport in teradata?

555


Hi send me the Teradata dumps to my id rajeshanantha@yahoo.co.in Thanks Rajesh. A

2900


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

614