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 |
Explain the steps to create and execute a user-defined function in the sql server?
Explain some DBCC commands?
Suppose you want to implement the one-to-many relationships while designing tables. How would you do it?
Explain trigger and its types?
How to access the deleted record of an event?
Write a query to include a constraint, to check whether the employee salary is greater than 5000?
write the query for taking database backup in sql
10 Answers ABC, IBM, Logica CMG, MA,
When would you use sql joins?
How to add a new dsn with the odbc driver for sql server?
What is the difference between a view and a stored procedure?
how to get 25th row in any table in sqlserver can u tell me syntax
please give me query code of unique fuction select UNIQUE (name) from emp_info Incorrect syntax near the keyword 'UNIQUE'.
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)