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
What is a memo field?
column A column b | output 10 7 | 10 5 8 | 8 7 -9 | 7 3 5 | 5 0 6 | 6 Write a sql query to print such output.
Is pl sql a programming language?
Can a primary key be a foreign key?
How to assign sql query results to pl sql variables?
how mysql optimizes distinct? : Sql dba
What is trigger explain with example?
Is pl sql and postgresql same?
How to Execute a Package in PL/SQL.?
What does pl sql developer do?
What are the different types of dbms?
What is a database event trigger?
Is oracle sql free?
What do you understand by case manipulation functions?
Explain the methods used to protect source code of pl/sql.