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 table valued parameters in sql server? Why tvp used?
Does sql server use java?
Do you know what is sql service broker?
What are the advantages of having an index on the sql server?
On a windows server 2003 active – passive failover cluster, how do you find the node which is active?
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 1nf 2nf and 3nf?
What does asynchronous call backs means?
How to set the current database in ms sql server?
Explain few examples of RDBMS?
What is data modeling and Reterminal integrity?
what are the three command line utilities and what are their primary functions?
When would you use the stored procedures or functions?
Why use “pivot” in sql server?
in the physical file layout, where should the transaction log be stored in relation to the data file?