you are sorting a table using "order by"(descending) clause of
a column which contains a null value...whether that row
containing null value will come first or last in the output??

Answers were Sorted based on User's Feedback



you are sorting a table using "order by"(descending) clause of a column which contains ..

Answer / vignesh lakshmirajan

The column contains null value will come first.. COz oracle consider the null value as larger value in this case....

Is This Answer Correct ?    15 Yes 0 No

you are sorting a table using "order by"(descending) clause of a column which contains ..

Answer / suman rana

if you are sorting a table using "order by"(descending)
clause of a column which contains a null value, row
containing null value will come first. Alternatively you can
use the clause "Nulls First" along with order by clause to
appear the Null values first.

Is This Answer Correct ?    9 Yes 0 No

Post New Answer

More Oracle General Interview Questions

Give SQL Query to find the number words in a sentence ? ex: 'ram charan singh' then ans:3 Answer:select length(trim('ram charan singh')) - length (replace (trim ( 'ram charan singh'),' ','')) +1 from dual The above query working properly when space between the words is only one &similar But ,If the space between the words is nonuniform. Ex:'ram charan singh is good' ans:5 i am not getting this answer using above query.

3 Answers  


What is the difference between hot backup and cold backup in oracle?

0 Answers  


Find all employees in Dept “Marketing”.

2 Answers  


What is a system tablespace?

0 Answers  


How to create a new table in oracle?

0 Answers  






10. Display the client number, order date and shipping date for all orders where the shipping date is between three and six months after the order date.

3 Answers   Wipro,


Explain cascading triggers.

0 Answers  


Is primary key = unique key,not null? If yes,please explain IF No,please explain

8 Answers   Genpact,


How does the on-delete-cascade statement work?

0 Answers  


how to insert data into partitioned table partition done by Range partition

1 Answers  


What is Partitions in Table ?

2 Answers   Atiric Software,


How to compare dates in oracle sql?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)