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


how to give permission to users that users can
update/insert/delete on a row of table on timeing 10am to
6pm only?

Answers were Sorted based on User's Feedback



how to give permission to users that users can update/insert/delete on a row of table on timeing 1..

Answer / kart

create or replace trigger trig_aone
before insert or update or delete on aone
for each row
begin
if to_char(sysdate,'HH24') not between (9) and (18) then
raise_application_error('-20011','u cant update in business
time');
end if;
end;

Is This Answer Correct ?    11 Yes 0 No

how to give permission to users that users can update/insert/delete on a row of table on timeing 1..

Answer / hari

We have to create trigger

create trigger trg_name
before insert/delete/update on table
when sysdate between 10am to 6pm
begin
logic
end;

Is This Answer Correct ?    13 Yes 3 No

how to give permission to users that users can update/insert/delete on a row of table on timeing 1..

Answer / pariksheet de

Grant Insert,Update,Delete
On Employees
To All

-----------------------------------------------

Create Trigger Upd_Employees
Before Insert,Update,Delete on Employees
For Each Row
Begin
if to_char(sysdate,'Dy') in
('Mon','Tues','Wed','Thrs','Fri','Sat','Sun') and to_char
(sysdate,'hr:mi') not between ('10:00') and ('6:00')
then raise_application_error(-
20145,'Insertion/Updation/Deletion can take place between
10:00 am and 6:00);
end if;
end;

Is This Answer Correct ?    1 Yes 0 No

how to give permission to users that users can update/insert/delete on a row of table on timeing 1..

Answer / cm

create one user in your windows o/s. Add this user into
your sql user in security.
This windows user provide the permission only 10am to 6pm.

Is This Answer Correct ?    0 Yes 9 No

Post New Answer

More SQL PLSQL Interview Questions

What is a database trigger ? Name some usages of database trigger ?

4 Answers  


Can a table contain multiple foreign key’s?

0 Answers  


How do you select unique values in sql?

0 Answers  


what is a trigger in mysql? Define different types of trigger. : Sql dba

0 Answers  


How many types of index are there?

0 Answers  


What Is a Trigger? How Do You Use It?

3 Answers  


Can I copy :old and :new pseudo-records in/to an oracle stored procedure?

0 Answers  


What is a sql select statement?

0 Answers  


what are ddl statements in mysql? : Sql dba

0 Answers  


How to add a column ‘salary’ to a table employee_details?

0 Answers  


Why are aggregate functions called so?

0 Answers  


How do you optimize SQL queries ?

6 Answers   CarrizalSoft Technologies, Infosys, Oracle,


Categories