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...


There is a table which contains all the employee details,
unfortunately there is mistake occured while entering the
data.
ex:
-------------------------------
empid empname gender address
-------------------------------
1 abcd f address1
2 defg m address2
3 ghth m address3
4 jkil f address4
write a update query that will change gender 'm' to 'f'
and 'f' to 'm'

Answers were Sorted based on User's Feedback



There is a table which contains all the employee details, unfortunately there is mistake occured w..

Answer / guest

update employeedetails
set gender='m'
where gender='f'
update employeedetails
set gender='f'
where gender='m'

Is This Answer Correct ?    2 Yes 2 No

There is a table which contains all the employee details, unfortunately there is mistake occured w..

Answer / shahbaz maqsood

It isn't possible to me to write a single query.You can first assign another value like 'a' to one of two values.Then assign your required value to the other

"update table set gender='f' where gender='m'"

"update table set gender='m' where gender='a'"

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More Programming Languages AllOther Interview Questions

what is microprocessor?

1 Answers   HCL,


1.group by clause explain along with an example 

1 Answers   Parexel,


Why did you ever become involved in QA/testing?

0 Answers  


class A{ void me(){s.o.p("");} class B extends A{ void me() {s.o.p(" ");} class M{ A a=new B(); B b=new A(); a.me(); b.mne();} what is the output of this, how?

2 Answers   Cosmos, HyTech Pro, WinSoft,


How do you initialize a static member of a class with return value of some function?

0 Answers   Yahoo,


what you mean by mantis in IT interview? why we use mantis? advantage of mantis?

1 Answers  


ho&#65367;&#12288;&#65364;o check single or double byte in struts

0 Answers  


design a counter with the following repeated binary sequence: 0, 1, 2, 3, 4, 5, 6, 7, 8 using JK Flip Flop.

3 Answers   College School Exams Tests, IBD, IBM, Ignou, IIIT, Nortech, TCS, UOS,


What are data structures?

1 Answers  


You are given a dictionary of all valid words. You have the following 3 operations permitted on a word: delete a character, insert a character, replace a character. Now given two words - word1 and word2 - find the minimum number of steps required to convert word1 to word2. (one operation counts as 1 step.)

0 Answers   Amazon,


What language / script is used to validate web page

3 Answers  


How can you incorporate a Datawindow to a Oracle8i stored procedure?

0 Answers   IBM,


Categories