i have a table student like
sname
-----
ram
ram
ram
raj
raj
raj
i need the output like
sname
-----
ram
raj
ram
raj
ram
raj
Answer Posted / deepak rohilla
select (substring(name,1,3)+' '+substring(name,13,3)
+' '+substring(name,5,3)+' '+substring(name,17,3)
+' '+substring(name,9,3)+' '+substring(name,21,3))name
from employee where name like '%raj%'
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Explain the first normal form(1nf)?
What is indexing in sql server with example?
What is trigger and different types of Triggers?
What is the difference between NOROW and LOCKROW?
Explain query editor regions
How will you monitor replication latency in transactional replication? : sql server replication
What are the basic functions for master, msdb, model, tempdb and resource databases?
What is a transaction and why is it important?
Does index slows down insert statements?
How will you monitor replication activity and performance? What privilege do you need to use replication monitor? : sql server replication
How to execute a sql statement using odbc_exec()?
What are the export options of ssrs?
What is abstracting periodical?
How to enable tcp/ip protocol on a sql server?
what are the disadvantages of cursors? : Sql server database administration