Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is primary key and foreign key with example?

916


What is inner join in sql?

1058


What is a table partition?

1105


How you improve the performance of sql*loader? : aql loader

997


what is table? : Sql dba

1040


Explian rowid, rownum? What are the psoducolumns we have?

985


What is a function in oracle pl sql?

1014


Does pdo prevent sql injection?

919


What is a native sql query?

1040


What is a record in pl/sql?

1124


what are the differences between char and varchar? : Sql dba

1057


What does pl sql stand for?

1095


What is data definition language?

1080


Which tcp/ip port does sql server run on? How can it be changed? : Sql dba

979


What are the possible values that can be stored in a boolean data field?

984