you are provided with the single table having say 4 col ie
fname lname age city , now the all records with displying of
only fname and lname is required but in this format say my
name is abhay khanna it will come like this
abhay-khanna
rahul-roy
gaurav-singh
the above format is required

Answers were Sorted based on User's Feedback



you are provided with the single table having say 4 col ie fname lname age city , now the all recor..

Answer / monal

TRY THIS:
SELECT FIRSTNAME +'-'+LASTNAME FROM 'TABLENAME'

Is This Answer Correct ?    7 Yes 1 No

you are provided with the single table having say 4 col ie fname lname age city , now the all recor..

Answer / sudhakar

use replace function
select replace(a,' ','-') from sub_string

Is This Answer Correct ?    1 Yes 1 No

you are provided with the single table having say 4 col ie fname lname age city , now the all recor..

Answer / radhakrishnan

select replace('radha krishnan',' ','-')

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More SQL Server Interview Questions

What is 2nf normalization form?

0 Answers  


What are the differences between clustered and non-clustered index?

0 Answers  


What is unpivot?

0 Answers  


i need some interview questions on sql server developer plz any onee send some links.

2 Answers  


How to find the version of sql server? : sql server database administration

0 Answers  






What are the different types of replication are there in sql server 2000?

0 Answers  


What is difference between standardization and normalization?

0 Answers  


What are cursors in ms sql server?

0 Answers  


Write a SQL query to make a column as unique?

0 Answers   Cap Gemini,


Why can there be only one clustered index and not more than one?

0 Answers  


Can you explain powershell included in sql server 2008?

0 Answers  


Is there any difference between the primary key and unique key?

0 Answers  


Categories