write a pl/sql function if enter a value=0 then output
value=1 and vise verse with out using if and case statements.
Answer Posted / ajitnayak
create or replace function vice_versa2 (inp_no number) return number
is
a number := 0;
begin
select decode(inp_no, 1, 0,1) into a from dual;
return a;
end;
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How does a self join work?
Explian rowid, rownum? What are the psoducolumns we have?
What is materialized view in sql?
how to drop an existing view in mysql? : Sql dba
What is where clause in sql?
What is the reports view in oracle sql developer?
Explain what is rdbms?
Explain normalization and what are the advantages of it?
What does the acronym acid stand for in database management?
What is a unique key and primary key and foreign key?
what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba
What is the requirement of self-join?
What is a rank in sql?
How to generate a salary slip like jan 1000 1000 feb 1000 2000 ... dec 1000 12000
How do you update sql?