Unix Technical Forum

General SQL question

This is a discussion on General SQL question within the Informix forums, part of the Database Server Software category; --> Hi, all. This question is not directly related to Informix, more a generic one. Still, I always had received ...


Go Back   Unix Technical Forum > Database Server Software > Informix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 09:16 AM
andris_sh@yahoo.com
 
Posts: n/a
Default General SQL question

Hi, all.

This question is not directly related to Informix, more a generic one.
Still, I always had received very good help in this ng.

Thing is, I am responsible for database design in one DWH solution. It
is quite complicated, about 100 tables and growing. Recently analysts
decided that, in regards of latest business analysis requirements, DWH
has to contain reference table between two tables, as they are in
many-to-many relationship.

Now, question is - how to fill keys in this reference table?
Data load process at first fills data in respective tables, then
updates foreign keys between tables and theh time would be to fill
reference table, which contains only two fields, foreign keys to two
other tables.

I have no idea, how to write procedure, which would fill and update
reference table, can you suggest some exapmle SQL script? Thanks!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 09:21 AM
Art S. Kagel
 
Posts: n/a
Default Re: General SQL question

andris_sh@yahoo.com wrote:
> Hi, all.
>
> This question is not directly related to Informix, more a generic one.
> Still, I always had received very good help in this ng.
>
> Thing is, I am responsible for database design in one DWH solution. It
> is quite complicated, about 100 tables and growing. Recently analysts
> decided that, in regards of latest business analysis requirements, DWH
> has to contain reference table between two tables, as they are in
> many-to-many relationship.
>
> Now, question is - how to fill keys in this reference table?


Is your question how to physically determine the matching keys to load into
the join table (also known as a gerund) or how to do so without violating
the relational integrity constraints you would like to have in place?

Art S. Kagel

> Data load process at first fills data in respective tables, then
> updates foreign keys between tables and theh time would be to fill
> reference table, which contains only two fields, foreign keys to two
> other tables.
>
> I have no idea, how to write procedure, which would fill and update
> reference table, can you suggest some exapmle SQL script? Thanks!
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:23 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com