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
How will you find out if there are expensive SQL statements running or not?
List the different types of joins?
What is the purpose of the tempdb database?
What is the purpose of data source?
How to create database with physical files specified in ms sql server?
How to enforce security in sql server? : sql server security
how to do partition in sqlserver
List out a number of the wants to setup a SQL Server failover cluster?
What is implicit cursors?
explain different types of backups avaialabe in sql server? : Sql server database administration
What is the beast way to write CTE in SQL Server ?
What are the differences between INNER JOIN, LEFT JOIN and RIGHT JOIN in SQL Server?
What are the reporting services components?
What are the aggregate and scalar functions?
What is the difference between coalesce() & isnull()?