The table has 3 columns 4 rows. The output is which column has least null values( A COL SHOULD BE THE OUTPUT)
Write the query plz.

A B C
================
1 NULL 2
NULL 3 4
NULL 5 6
7 NULL NULL

O/P

C
=
2
4
6

Answer Posted / ravi gali

select c from tablename
where c IS NOT NULL;

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I know if oracle client is installed on windows?

492


How do I start tns listener?

530


In oracle there is column command, how will you explain that?

543


Select all the employees who were hired in last 2 years and who works in dept where max managers are working.

2444


How to select all columns of all rows from a table in oracle?

586






How to create additional tablespaces for an new database?

562


How to start a new transaction in oracle?

586


What is a connect identifier?

536


Can we store images in oracle database?

543


How does the on-delete-cascade statement work?

601


Explain oracle’s server parameter file.

562


What query tells you how much space a tablespace named test is taking up, and how much space is remaining?

1793


How would you configure your networking files to connect to a database by the name of DSS which resides in domain icallinc.com?

1462


What is the difference between count (*), count (expression), count (distinct expression)?

550


What do you mean by a tablespace?

559