SQL NEWBEE QUESTION
- From: "Richard Wakeman" <jrw16@xxxxxxxxxxxx>
- Date: Fri, 27 Oct 2006 06:34:20 -0700
Have two Tables linked by a field. First Table is the active table with
current data - The second table is like a History table of the First one.
When data is changed on the First Table, a History record is generated for
it showing the data before the change. So over time, the History file
builds up a lot of records, and that's ok, not the problem I am having other
than the History table can be large.
What I need to have happen is to have a quick way (SQL) to go thru the
History table, and replace some data into a History Table Field based upon
whether that History records's counter part in the Main Table has been
deleted (not there anymore). We still want to keep History Records of those
deleted in the Main. Am I making any sense?
Anyway, the SQL code for it would be something like:
UPDATE HISTORY.DBF SET HDUPNUM = "1" INNER JOIN MAIN ------- and here I
get lost....
Please some specific systax in your response, and if you need better
clarification and/or more information, let me know.
Thanks!!
RW
.
- Follow-Ups:
- Re: SQL NEWBEE QUESTION
- From: Maarten Wiltink
- Re: SQL NEWBEE QUESTION
- From: Marc Rohloff
- Re: SQL NEWBEE QUESTION
- Prev by Date: Re: Textbook recommendation
- Next by Date: Best way to drag and drop ?
- Previous by thread: fast report?
- Next by thread: Re: SQL NEWBEE QUESTION
- Index(es):
Relevant Pages
|