Advertisement
naimul64

EodProcessLog to DatewiseProcessExecution

Dec 4th, 2018
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. INSERT INTO profino_rbl.datewise_process_execution
  2. (bank_name, execution_completion_time, execution_date, execution_starting_time, is_executed, service_name, note, date_of_execution)
  3. SELECT l.bank_name, l.end_time, date_format(l.date_for_report, '%d-%m-%Y'), l.start_time, (CASE status WHEN 'SUCCESS' THEN TRUE ELSE FALSE END ), process_name, note, date_for_report FROM eod_process_log l
  4. WHERE l.process_name = 'dailySummaryReport'
  5. AND Date(l.date_for_report) > '2017-01-01 00:00:00'
  6. ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement