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


Fname Lname City Pin
ramesh kumar salem 365241

Query to generate a code having the firstletter of
Fname,Lname & 3letter of city Last 3letter of pin,all in
capital letters

Answers were Sorted based on User's Feedback



Fname Lname City Pin ramesh kumar salem 365241 Query to generate a code havi..

Answer / vardhan rao

select ucase(mid(Fname,1,1)) as
FirstName,ucase(mid(Lname,1,1)) as
LastName,ucase(mid(City,1,3)) as Cty,ucase(mid(Pin,-3))as
PinCode from empadd

Output:
FirstName LastName City Pincode
R K SAL 241

Is This Answer Correct ?    3 Yes 1 No

Fname Lname City Pin ramesh kumar salem 365241 Query to generate a code havi..

Answer / mdeva

select ucase(mid(Fname,1,1)) as
FirstName,ucase(mid(Lname,1,1)) as
LastName,ucase(mid(City,3,1)) as Cty,ucase(mid(Pin,-3))as
PinCode from tablename

Is This Answer Correct ?    3 Yes 3 No

Fname Lname City Pin ramesh kumar salem 365241 Query to generate a code havi..

Answer / sonali

select substr(ucase(Fname),1,1), substr(ucase(Lname),1,1),
substr(ucase(City),1,3), mid(Pin,-3) from emp

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MySQL Interview Questions

Does mysql use tcp or udp?

0 Answers  


Can you tell how to find the number of rows in a resultset using php?

0 Answers  


How to delete the repeated records from a table?

0 Answers  


What is difference between oracle sql and mysql?

0 Answers  


How do I restart mysql on windows?

0 Answers  


What does mysql flush hosts do?

0 Answers  


What is the purpose of using a heap table?

0 Answers  


What is bigint in mysql?

0 Answers  


What are the non-standard sql commands supported by 'mysql'?

0 Answers  


What is the purpose of using ifnull() function?

0 Answers  


What is the difference between procedure and function in mysql?

0 Answers  


Hi Team, This is kartik, I recently completed my B-tech. Importance of posting this question is for to know the best books on SQL(MYSQL/Oracle)? I like SQL concept's so much, at the same time i decided to choose SQL for my career purpose. So please suggest me the best books that are very helpful for a fresher to improve concepts like (SQL/PLSQL)Basics, programming concepts, architectures etc. Please consider my request as an important one. I am very thankful to you for providing this opportunity. If possible can you please send the names of books for my personal id also: karthikgdv1206@yahoo.com. Thanks, Kartik T

0 Answers  


Categories