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

Why left join is used in sql?

984


how can I make a script that can be bi-language (supports english, german)? : Sql dba

1018


What do you understand by exception handling in pl/sql?

1038


what is 'mysqldump'? : Sql dba

1114


What is the use of non clustered index?

996


what is data control language? : Sql dba

1031


what is an index? : Sql dba

1003


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

1165


What is clustered index in sql?

1057


What is lookup table in sql?

1054


how can we know the number of days between two given dates using mysql? : Sql dba

1049


What are local and global Indexes and where they are useful.

1447


Explain the difference between rename and alias?

1018


what is a foreign key ? : Sql dba

1087


what is union, minus and interact commands? : Sql dba

1190