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
Why do we need cursors in pl sql?
Why trigger is used in sql?
What is the order of sql select?
Define join and name different types of joins?
Which join is like inner join?
How to write pl sql program in mysql command prompt?
What is difference between table and view?
How do you determine the current isolation level? : Transact sql
What is normalization in a database?
how to convert numeric values to character strings? : Sql dba
What is trigger and stored procedure in sql?
Can we use the cursor's to create the collection in PL/SQL?
what are the performance and scalability characteristics of mysql? : Sql dba
Is pl sql different from sql?
Can we commit inside a trigger?