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 / 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 |
what is Full Text Search ?
What is the purpose of object explorer and its features? : sql server management studio
Can you explain what are commit and rollback in sql?
how to take backup bcp out for a column in table in sql server?
employee table has employee id ----------- empid ---------------- 1 2 3 3 3 4 5 5 5 6 6 6 7 here the values r repeated two times.how to select the repeated values only.i.e 3,5,6 should alone come.
Explain Geometry datatype in sql server 2008 with example
Delete duplicate rows without using rowid.
Explain hostprotectionattribute in sql server 2005?
What is row by row processing ?
What is nolock?
Explain Normalization and DE normalization
What is the difference between the export /import functions in sql studio and standalone sql manager? : sql server management studio
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)