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
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 |
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 |
How to count duplicated values in a column in oracle?
What is set operator oracle?
What are group functions in oracle?
how to hide the stored procedure inside a package
How to define Data Block size ?
can we pass two out parameters at a time in function?please answer to my question
How to increment dates by 1 in oracle?
Does rowid change in oracle?
what r tyhe major differences between oracle 9i & 10g?
What happens if the imported table already exists?
when we are importing items in inventory, showing errors, Oracle support suggested us for running scripts & also suggested if we run scripts, iprocurement applicaation if is there it will show shared and if we go in future for iprocurement, it wont work. So kinldy suggest any functional solution.
Given two table employee and department EMP ---------------- empid deptid(fk) Dept --------------------- deptid(pk) deptname que-Write a query to find count of employee in each department. Expected Output- deptid countofEmployee --------------------------- 10 57 20 20 30 15