Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Need help with 2 tables (Relational )
I have a program that imports information from another database. Here
is the problem.

Table 1 I have a field called Sys_Id. Autonumber Key

Table 2, I have a field called Something_ID

When I import into table 1 (Sys_ID) I need to also have table 2
(Something_ID)populated with the same info and have a relations ship
with both tables. In the Clarion examples it maual entry works fine
and I understand that. But when importing info from another database,
I dont get the same results.

Any help would be appreciated.

Charlie

Report this thread to moderator Post Follow-up to this message
Old Post
Charlie Parvin
03-27-04 04:01 AM


Re: Need help with 2 tables (Relational )
Hi Charlie,

After importing both databases into two tables, you could write a
batching process to loop through each entry of the first table with an
inner loop (or a single Get) of your second table with boolean search
criteria to match the first, pass your variables from first to second,
then write the results to disk before moving on to the next entry of
the first table. This is the idea you can apply to Legacy or ABC:

LOOP ! table 1

LOOP ! table 2

IF table 2 = table 1 boolean criteria
table2.field = table1.field
PUT table 2 ! write to table 2
CYCLE ! move on to next table 1 record
ELSE
! keep searching
END  ! end of criteria

END ! end of inner loop

END ! end of loop


cparvin@parvin.phxcoxmail.com (Charlie Parvin) wrote in message news:<9ed5bf67.0403200112.4
9979f87@posting.google.com>...
> I have a program that imports information from another database. Here
> is the problem.
>
> Table 1 I have a field called Sys_Id. Autonumber Key
>
> Table 2, I have a field called Something_ID
>
> When I import into table 1 (Sys_ID) I need to also have table 2
> (Something_ID)populated with the same info and have a relations ship
> with both tables. In the Clarion examples it maual entry works fine
> and I understand that. But when importing info from another database,
> I dont get the same results.
>
> Any help would be appreciated.
>
> Charlie

Report this thread to moderator Post Follow-up to this message
Old Post
Arnett, James
03-27-04 04:01 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Clarion archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 03:56 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.