Home > Interview Questions > SQL Server > What is the use of REVERSE() function in SQL server?

What is the use of REVERSE() function in SQL server?

by Narain_Siddharth   on Jun 01, 2011   Category: SQL Server   |  Level: Beginner   |  Views: 97    |  Points: 25     |  Silver 



The REVERSE() function in SQL server is used to returns the reverse of given string/column. for example if you want to reverse the employee firstname colum, see the below sample

SELECT REVERSE(emp_firstname) 
FROM employee
ORDER BY emp_firstname
//results like as shown below

emp_firstname
--------------------
aasewaI
sadwaR
cdseeP
ccfeJ
xcvdsfeeasG
ccxndfweksD
sdfcxcvdM


Like this question? Bookmark and Share:


  « Previous Question  |  Next Question »

  User Responses | Post .Net Interview Question
No Response found!
Submit feedback about this Interview Question
Please sign in to post feedback