If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > HELP with TRIGGERS.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-24-11, 19:57
error1 error1 is offline
Registered User
 
Join Date: May 2011
Posts: 1
HELP with TRIGGERS.

I have these questions for my assignment?
I have created tables and inserted data and everything but I am stuck with triggers.

a. Write a trigger to be executed on insert of PROPERTY to initialize date_of_insert and expiration_date to Sysdate.

b. Write a Procedure/trigger to be executed on insert, update of a PROPERTY Every property that gets entered gets checked against other properties of having the same: Agent(s), Owner(s), Location (City, State, Address), if you find one then update Property Status to “Double” as a duplicate

c. Write a trigger to be executed on update of a PROPERTY when the status field is changed from “NEW” to “APROVED” then update expiration date with today’s date (Sysdate) + 90 days.
Reply With Quote
  #2 (permalink)  
Old 05-25-11, 03:00
aflorin27 aflorin27 is offline
Registered User
 
Join Date: Apr 2008
Location: Iasi, Romania
Posts: 317
__________________
Florin Aparaschivei
Iasi, Romania
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On