wirte a query to remove null? following table are

col1 col2 col3
dinesh null null
null suresh null
null null prakesh
i want the output like

col1 col2 col3
dinesh suresh prkaesh

Answer Posted / apsar

select distinct((select col1 from z1 where no is not null))col1,(select col2 from z1 where sal is not null)col2,select col3 from z1 where col is not null) from z1
Hint:z1 is Table Name

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I partition a table in sql?

538


Where can I learn sql for free?

503


What does := mean in pl sql?

552


Why self join is used in sql?

495


How to write pl sql program in mysql command prompt?

511






How do you write an inner join query?

511


What is AUTH_ID and AUTH_USER in pl/sql ?

1688


What are the 3 modes of parameter?

675


What is cross join sql?

494


What is minus?

541


How to display the records between two range in Oracle SQL Plus?

636


Define implicit and explicit cursors.

624


What is a pdo connection?

512


How to Execute a Package in PL/SQL.?

580


What is java sql package?

532