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
Answer Posted / 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 |
Post New Answer View All Answers
What is max_used_connections in mysql?
What is 'mysqlshow'?
How can we optimize stored procedure?
What is slow query log in mysql?
Is mysql a backend?
How do you concatenate strings in mysql?
Can mysql store files?
How do I create a database in mysql workbench?
How to shut down the server with 'mysqladmin'?
What is a string in mysql?
How do you backup a database in mysql?
Is mysql distributed?
What is the maximum size of mysql database?
Why myisam is faster than innodb?
What is the current root password of mysql?