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 are the differences between DDL, DML and DCL in SQL?
0 Answers ABB, Aspire, Infogain,
What is ddl and dml commands?
In join, which clause in not used?
What is the process of indexing?
What is truncate table?
What is sub query and its properties?
What is usually the first word in a sql query?
What is resource db in sql server?
How does recursive cte works in sql server?
What will be query used to get the list of triggers in a database?
Explain the properties of a relational table?
How do you drop an index?
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)