Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2009

    Unanswered: executing a select on two tables and getting the updated only

    Hi all,

    I have two identical tables called first and second. Each of them has the following columns:
    id primary key,
    name varchar,
    lastUpdateTime Date.

    The first table contains fresh rows from the current day and the second contains all rows from
    the life cycle of the application.

    I want to execute a query to fetch rows from the second table which contains all the rows,
    but if there are newer rows in the first table, I want to get them instead. Also, new rows that appear
    in the first table and not in the second should be fetched.

    Anyone has an idea how to solve it?
    Thanks a lot!

  2. #2
    Join Date
    Jan 2004
    Croatia, Europe
    Provided Answers: 5
    Searching for MAX lastUpdateTime from UNION of both tables?

  3. #3
    Join Date
    Aug 2003
    Where the Surf Meets the Turf @Del Mar, CA
    Provided Answers: 1
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts