Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 09 Jan 2003 @ 19:04:46 GMT


     
  <Prev Next>  
<<First
<Prev
Next> Last>>  


Subj:   Please help
 
From:   sreya malladi

Hi,

Please help me this. I have two tables

Table a

Column1 Column2
abcd    24
aaaa    12
bbbb    4
cccc    3

Table b
Column1 Column3
abcd    k
abcd    l
abcd    g
abcd    f
aaaa    a
aaaa    b
aaaa    c
bbbb    o
bbbb    z
cccc    w

I want out put should be like this by using sql(no sp and no esql)

Abcd      24  k I G F

And I want to insert this out put into another table. That table should be crate by dynamically depending up on out put

For example in this case

Abcd      24  k I G F

7 columns

And
cccc      w  this out put has only two columns

Please help me on this.

sreya



     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 27 Dec 2016