popovnv

Untitled

Oct 25th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. select form_file_id from bp.form_meta_description where start_date >= to_date('01/06/2017', 'dd/mm/yyyy'))
  2. or id in
  3. (
  4. select form_file_id from bp.form_data where object_edit_date > (sysdate - 180)
  5. and alternative_id in (select alternative_id from bp.api_bp_formdata_date
  6. where form_date in ( to_date('01/06/2018', 'dd/mm/yyyy'), to_date('01/08/2018', 'dd/mm/yyyy'), to_date('01/09/2018', 'dd/mm/yyyy'), to_date('01/01/2018', 'dd/mm/yyyy'), to_date('05/03/2018', 'dd/mm/yyyy'), to_date('30/05/2018', 'dd/mm/yyyy'), to_date('07/03/2017', 'dd/mm/yyyy'), to_date('13/08/2017', 'dd/mm/yyyy'), to_date('17/11/2017', 'dd/mm/yyyy'), to_date('13/03/2018', 'dd/mm/yyyy'), to_date('06/09/2018', 'dd/mm/yyyy'), to_date('07/05/2018', 'dd/mm/yyyy'), to_date('27/07/2018', 'dd/mm/yyyy')))
  7. or alternative_id not in (select fdate.alternative_id from bp.api_bp_formdata_date fdate) )
  8. or id in (select da.form_file_id from bp.form_data_addition da)
  9. or id in (select dar.form_file_id from bp.form_data_archive dar
Advertisement
Add Comment
Please, Sign In to add comment