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

Answer Posted / radhakrishnan

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

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create percentile function?

116


Where cross join is used?

615


Can a table have 2 foreign keys?

584


In what three ways is the return statement used in a stored procedure?

606


Do you know what is sql service broker?

630






Which is better statement or preparedstatement?

618


What is dbcc? Give few examples.

665


How to test a dml trigger in ms sql server?

666


What are the restrictions that views have to follow?

640


What is the difference between a clustered index and a non-clustered index?

617


What is PROJECTION Operation?

683


What is the difference between index seek vs. Index scan?

686


System variable and temporary variables

1807


What is autocommit mode in sql server?

622


Which table keeps the locking information?

606