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 / ajitnayak
select distinct col1 from samp
where col1 is not null
union all
select distinct col2 from samp
where col2 is not null
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What do you mean by rowid?
What is dense_rank?
What is clause?
what is foreign key? : Sql dba
How many types of triggers exist in pl/sql?
How does sql profiler work?
How do you get column names only for a table (sql server)?
What are the set operators in sql?
Does sql*plus have a pl/sql engine?
Differentiate between sga and pga.
Explain cursor types?
what is sub-query? : Transact sql
what are the differences between char and varchar? : Sql dba
Define sql delete statement.
Explain what is an index?