One table Test with single column. These are the values in
the table
a
b
c
d
e
f
g
h
I need a query (without using any variable) with output as -
a b c
d f f
g h

Answer Posted / anjana

Table test have one column as name:

Test
name
a
b
c
d
e
f
g

select replace(name,'e','f') from test order by name


Output will be:

a
b
c
d
f
f
g

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the template in sql?

535


What are the events recorded in a transaction log?

502


Explain different types of locks in sql server.

592


Does view occupy space?

511


Can you explain various data region available in ssrs with their use?

544






What is a synonym for manipulation?

544


Why should you use or avoid select * statements?

571


How to get the definition of a view out of the sql server?

502


How to use wildcard characters in like operations in ms sql server?

593


How to create function with parameter in sql server?

553


What is the exact numeric data type in sql?

547


What is the difference between cartesian product and cross join?

478


Why use view instead of a table?

515


What is the difference between locking and multi-versioning?

529


Can you explain full-text query in sql server?

546