Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to get the salary in descending order with out using
the keyword desc in sql

Answer Posted / sanjay

Select * from emp order by ((Select max(salary ) from emp) -
salary)+1

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain tablesample?

982


What is oltp (online transaction processing)?

984


How to loop through result set objects using odbc_fetch_row()?

955


What is the New in SQL server 2008?

953


Explain indexes disadvantages?

1067


What are the basic functions for master, msdb, model, tempdb databases?

1027


How to transfer data from a cursor to variables with a "fetch" statement?

1072


Other than truncate statement, which other command can by-pass the trigger on the tables?

1112


When I delete any data from a table, does the sql server reduce the size of that table?

996


What is dbcc command in sql server?

1069


Is it safe to delete log files?

903


How to locate and take substrings with charindex() and substring() functions?

997


You have to store user responses of ‘yes’ and ‘no’ what kind of data type is best suited for this task?

931


How you can change the database name in SQL SERVER?

1175


Explain a join?

1048