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
Can we linked SharePoint to a SQL database?
How to find related tables in sql server?
What purpose does the model database server?
Explain tablesample?
What is after dml trigger?
What is single-user mode?
What is log shipping? Can we do logshipping with SQL Server 7.0 - Logshipping is a new feature of SQL Server 2000. We should have two SQL Server - Enterprise Editions. From Enterprise Manager we can configure the logshipping. In logshipping the transactional log file from one server is automatically updated into the backup database on the other server. If one server fails, the other server will have the same db and we can use this as the DR (disaster recovery) plan.
Explain syntax for disabling triggers?
Define synonym?
What are information schema views?
How to execute stored procedure and set temp table in sql server?
How do I save a stored procedure in sql server?
between cast and convert which function would you prefer and why?
What is cursors? And what are the different types of cursor?
What are recommended options to be used while using db mirroring? : sql server database administration