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
Explain the methods used to protect source code of pl/sql.
Does user triggers have entry for trigger with compilation errors?
Can we create table in function?
Define concurrency control. : Transact sql
What is sqlerrd?
What are % type and % rowtype?
what is sql server agent? : Sql dba
What are sql objects?
What is sql and db2?
What is function and procedure in pl sql?
What is Collation Sensitivity ? What are the various type ?
Does sql support programming?
What is sap sql anywhere?
Could you please provide oca (oracle 10g) dumps for my certification ?
What are different types of triggers?