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 / monal

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

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you clear a log file?

513


What are the disadvantages of using querystrings to send data from one page to another?

589


What are the purpose of Normalisation?

640


What is the contrast between sql and mysql?

594


Which are the new data types introduced in sql server 2008?

514






Recommend an approach to ensuring that all changes in the remote databases synchronize with the SQL Azure database?

106


What are 3 ways to get a count of the number of records in a table?

615


What is a with(nolock)?

581


Please explain the characteristics of a transaction server for example atomicity, consistency, isolation, durability?

503


How to modify the underlying query of an existing view?

541


what are the reporting service components in SSRS?

118


Can foreign key be deleted?

532


How many types of attribute relationships are there? : sql server analysis services, ssas

589


what are the critical issues you have resloved in your company

1554


What is the use of =,==,=== operators?

585