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 sort records in sql?

Answer Posted / satish asnani

For EMP table
order by deptno asc OR order by deptno desc

Normally records with NULL values are listed at last. We can
change this by using "NULLS FIRST" or "NULLS LAST" along
with order by clause.

Ex: order by deptno nulls first

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is nvarchar in sql?

885


Which command is used to delete a package?

1089


What is the execution plan in sql?

972


how many ways we can we find the current date using mysql? : Sql dba

1034


what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql

900


What are sql procedures?

965


How do I view a procedure in sql?

907


what is primary key? : Sql dba

952


is mysql query is case sensitive? : Sql dba

1029


What is coalesce in sql?

970


What is a Mapplet?

1057


Explain the difference between cursor declared in procedures and cursors declared in the package specification?

1058


What is an emotional trigger?

930


What are the usages of sql?

1010


How to use distinct and count in sql query? Explain

959