Newbie - I am trying to create a plsql statement that takes results from one select statement and puts them into the 2nd and then puts the results from the 2nd statement into a text file
ie:
1st
SELECT HistNum FROM Hist WHERE date >= to_datefdt,'mm/dd/yyyy') and date < to_datetdt,'mm/dd/yyyy')
The results from above should go into:
2nd
SELECT * FROM Hist_Segs WHERE HistNum IN (results of 1st statement)
Thanks in Advance
ie:
1st
SELECT HistNum FROM Hist WHERE date >= to_datefdt,'mm/dd/yyyy') and date < to_datetdt,'mm/dd/yyyy')
The results from above should go into:
2nd
SELECT * FROM Hist_Segs WHERE HistNum IN (results of 1st statement)
Thanks in Advance