Like shown below i have 3 columns(Name,No,Address). The
values in name column i want to modity.
Requirement : Keep only once space between two words
(Fname,Lname) in the Name column.
For this what is the query? Please answer me. Advance
Thanks.
Name No Address Reference
manoj kumar
kumar raja
vinzay kumar
rajendra prasad
gowri nath -- -- --
Answer Posted / kavitha n
SELECT NAME,
( SUBSTR (NAME, 1, (INSTR (NAME, ' ', 1)))
|| ''
|| SUBSTR (NAME, INSTR (NAME, ' ', -1), LENGTH (NAME))
) output
FROM test;
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
Why are aggregate functions called so?
Is sql a microsoft product?
Why self join is used in sql?
what is heap table? : Sql dba
what is cross join? : Sql dba
What is a clob in sql?
is mysql query is case sensitive? : Sql dba
What is the use of desc in sql?
What is set serveroutput on in pl sql?
Can we perform dml in function?
How is data stored on a disk?
what are integrity rules?
What is linq to sql?
What are sql commands?
How can I delete duplicate rows?