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
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 |
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 |
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 |
What does mysqli stand for?
How to show certain selected rows with the value "pcds".
How would you enter characters as hex numbers?
How do I find users in mysql?
How do I insert an image into mysql workbench?
What is the difference between mysql_fetch_array and mysql_fetch_object?
If we create a column with data type VARCHAR(3), what would we expect to see in MySQL table?
Why mysql is so popular?
What is pdo mysql?
Give the syntax of REVOKE commands?
What is A BI Ap;plication?
How to create trigger in mysql workbench?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)