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 |
Is mysql same as sql?
Write a query to find duplicate rows in table?
What is query log in mysql?
How do I edit a table in mysql?
How to decrement dates by 1 in mysql?
What is a csv table?
How many tables will create when we create table, what are they?
What are the 5 r's of managing behaviors?
How to check if a record exists in a mysql database php?
what is mySQL. Is there any specific qualification required to do this course ? What is the scope in India after doing mySQL
What is full form of xampp?
If you specify the data type as DECIMAL (5,2), what?s the range of values that can go in this table?
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)