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...


wtite down triggr not any entry on Sunday

Answers were Sorted based on User's Feedback



wtite down triggr not any entry on Sunday..

Answer / debasish sinha

create or replace trigger trg_sun
before insert on <table name>
begin
if rtrim(to_char(sysdate,'day'))=rtrim('sunday') then
raise_application_error(-20345,'no transaction in sunday');
end if;
end trg_sun;

Is This Answer Correct ?    7 Yes 1 No

wtite down triggr not any entry on Sunday..

Answer / rajdeep

create or replace trigger <trigger_name> before insert on <table_name>
begin
if (sysdate,'day') in 'sunday'
then
raise_application_error(-20500,'cannot insert values on sunday');
end if;
end;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

can i use global variables in stored procedure or function

1 Answers   L&T,


What are sql functions? Describe the different types of sql functions?

0 Answers  


Can one improve the performance of sql*loader? : aql loader

0 Answers  


What is a unique constraint?

0 Answers  


What is sql key?

0 Answers  


What does stand for in sql?

0 Answers  


how to load data files into tables with 'mysqlimport'? : Sql dba

0 Answers  


How exception handling is done in advance pl/sql?

0 Answers  


Why do we use partitions in sql?

0 Answers  


how to create temparary sequence

2 Answers   TCS,


explain primary keys and auto increment fields in mysql : sql dba

0 Answers  


What is the purpose of design view?

0 Answers  


Categories