Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I have a KSH script that has one SQL Query and generates and emails output of the query in HTML format. I want to change the script so that it has three SQL queries and the last query generates and emails the HTML output page of just that query.

So far I have:

  • Query 1 - Creates a table by performing a select into into a table in tempdb

  • Query 2 - Creates a table by performing a select into into a table in tempdb

  • Query 3 - Performs a join between table 1 and table 2 and creates table 3 Then table 3 is queried and and the result is placed in a HTML file and emailed

share|improve this question
    
There's no need to post a script that long, unless you believe its in error. –  eyoung100 Oct 8 '14 at 18:47
    
@tango29, a good guide to asking good questions is here: stackoverflow.com/help/how-to-ask –  glenn jackman Oct 8 '14 at 19:21
    
If you want people to review your code: codereview.stackexchange.com –  glenn jackman Oct 8 '14 at 19:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.