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
What is cursor in ms sql server?
What is user defined datatypes and when you should go for them?
What are examples of triggers?
What are the properties of the transaction?
Write a query to include a constraint, to check whether the employee salary is greater than 5000?
What are the different types of normalization?
What is hierarchy, what are its types and difference between them? : sql server analysis services, ssas
How many replicas are maintained for each sql azure db?
what number files will a information contain in SQL Server? How many forms of information files exist in SQL Server? How many of those files can exist for a single database?
What is the concept of optimization?
Do you know what is blocking?
Give main differences between "Truncate" and "Delete".
How is SQL Azure different than SQL server?
What is plan freezing?
as a part of your job, what are the dbcc commands that you commonly use for database maintenance? : Sql server database administration