Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8302805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:22:33+00:00 2026-06-08T17:22:33+00:00

I have a trigger which is sending data from a table to another table

  • 0

I have a trigger which is sending data from a table to another table in another database. all s working fine.

The prob is that there is a new concept of END DATE, in which, if END DATE is present for a person, the row should reach the other table on that particular date..

eg.: if someones end date is 31st august, it should go on that day only, but ofcourse, my trigger is firing on event change (when enddate is set to 31st august)..

Could you please suggest me what I can do to SET the row to go on ENDDATE.?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T17:22:36+00:00Added an answer on June 8, 2026 at 5:22 pm

    It doesn’t sound like you don’t want a trigger. It sounds like you want a job. For example, if you create a procedure that transfers all the rows whose end_date is today

    CREATE OR REPLACE PROCEDURE move_rows_with_end_date(
      p_end_date IN DATE DEFAULT trunc(SYSDATE) 
    )
    AS
    BEGIN
      INSERT INTO table_name@remote_database( <<list of columns>> )
        SELECT <<list of columns>>
          FROM table_name
         WHERE end_date = trunc(sysdate);
    END;
    

    Then you can create a job that runs the procedure every day at midnight

    DECLARE
      l_jobno PLS_INTEGER;
    BEGIN
      dbms_job.submit( l_jobno,
                       'BEGIN move_rows_with_end_date; END;',
                       trunc(sysdate+1),
                       'trunc(sysdate+1)' );
      commit;
    END;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a trigger that check data before insert to another table IF NOT
I'm trying to write a table trigger which queries another table that is outside
I have a simple trigger which pulls data from the lead object and places
I have within my Sql Server 2008 database a trigger which will run on
I have a trigger that stores changes made in a separate table when a
I have a trigger which deals with some data for logging purposes like so:
I have a client that connects to server, starts sending binary data and when
I have an Oracle trigger which is calling a stored procedure that has PRAGMA
I have a table that contains partial data that is of no use to
hi i have created a trigger which i want to update a table field

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.