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
Why truncate is ddl?
Why main is user defined function?
How to change the system date and time from SQL Plus Terminal ?
What is the Control Flow in SSIS
How to check table values in sql server?
What is sql service broker?
What do you understand by intent locks?
How can I check that whether automatic statistic update is enabled or not?
What are the restrictions while creating batches in sql server?
What is RMS migrations?
When I delete any data from a table, does the sql server reduce the size of that table?
What the different topologies in which replication can be configured?
Can you explain what is indexed view? How to create it?
Who is the owner of a schema in ms sql server?
What does Master database contains?