can any one help ? newbie
I have three table's two have text need.
select text_x from table_x
where ctl_date> '18-aug03'
and seq_num = '123'
union all
select text_y from table_y
where ctl_date> '18-aug03'
and seq_num = '123';
This works! and returns the text I need
now I need to incoporate the third table
which holds the "location code" which I really need.
I need all seq_num's and text from one specific Loc_code.
select seq_num from loc_table
where Loc_code = 'ST'
and ctl_date> '18-aug03'
this works ! and returns the seq_num
is there a way to get the results from the table above seq_num and use it as a varible for the select statements on the top (and seq_num = 'x')
or maybe there is another option
thanks
I have three table's two have text need.
select text_x from table_x
where ctl_date> '18-aug03'
and seq_num = '123'
union all
select text_y from table_y
where ctl_date> '18-aug03'
and seq_num = '123';
This works! and returns the text I need
now I need to incoporate the third table
which holds the "location code" which I really need.
I need all seq_num's and text from one specific Loc_code.
select seq_num from loc_table
where Loc_code = 'ST'
and ctl_date> '18-aug03'
this works ! and returns the seq_num
is there a way to get the results from the table above seq_num and use it as a varible for the select statements on the top (and seq_num = 'x')
or maybe there is another option
thanks