If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > join 2 list

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-29-04, 01:38
hew212 hew212 is offline
Registered User
 
Join Date: Dec 2003
Posts: 26
Question join 2 list

I would like to join 2 select list 9 with (different structure) into a single list. what should i do.

if yes, can you pls give me an example?

tq!
Reply With Quote
  #2 (permalink)  
Old 01-29-04, 09:48
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
And how exactly would you like to join 2 different structures?
Could you be more precise what you want?
__________________
rws
Reply With Quote
  #3 (permalink)  
Old 01-29-04, 21:59
hew212 hew212 is offline
Registered User
 
Join Date: Dec 2003
Posts: 26
Quote:
Originally posted by Roelwe
And how exactly would you like to join 2 different structures?
Could you be more precise what you want?
there are 2 table

TABLE NAME :OE.CSSALES2
STRUCTURE : SALES.NO, ITEM.CODE (THIS FIELD IS MULTIVALUE)

TABLE NAME :IV.MASTER
STRUCTURE : ITEM.CODE, S.CTGY (THIS FIELD IS MULTIVALUE)

REQUIRED FORMAT (AFTER JOINT)

SALES.NO ITEM.CODE S.CTGY


PLEAE HELP ME, IT SO URGENT!
Reply With Quote
  #4 (permalink)  
Old 01-30-04, 01:38
vpshriyan vpshriyan is offline
Registered User
 
Join Date: Nov 2003
Location: Mumbai, India
Posts: 92
Hi Hew,

This could be what you may be looking for.

select sales.no, item.code, s.ctgy
from oe.cssales2 a, iv.master b
where a.field = b.field and ...

You need to specify the equality relation for the join to work properly according to your business rule.

Regards,
Shriyan
Reply With Quote
  #5 (permalink)  
Old 01-30-04, 03:48
hew212 hew212 is offline
Registered User
 
Join Date: Dec 2003
Posts: 26
Quote:
Originally posted by vpshriyan
Hi Hew,

This could be what you may be looking for.

select sales.no, item.code, s.ctgy
from oe.cssales2 a, iv.master b
where a.field = b.field and ...

You need to specify the equality relation for the join to work properly according to your business rule.

Regards,
Shriyan
thanks alot.

but I would to to use tcl command rather than using the SQL statement(because iam using the uniobject). can i use tcl to join all this table together?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On