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 many databases Microsoft SQL server provides?
What are the rules to use the rowguidcol property to define a globally unique identifier column?
Explain about unique identifier data type in sql server?
How many types of local tables are there in sql server?
Write SQL queries on Self Join and Inner Join.
Will count(column) include columns with null values in its count?
Explain the use of containers in ssis?
Why functions are used in sql server?
How to return the second 5 rows in ms sql server?
You are designing a database for your human resources department in the employee table, there is a field for social security number, which cannot contain null values if no value is given, you want a value of unknown to be inserted in this field what is the best approach?
What is sub-query in sql server? Explain its properties.
What Are the Main Features of SQL Azure?
Explain what are sparse columns?
Why SQL Agent is used?
How do I find information about the install locations for the various instances running on a computer?