0% found this document useful (0 votes)
37 views2 pages

Run A Select To Get The Query Results Grid

Run a select query to export results to a file named PS_CSY_PNET_STG, then copy the file locally and to a terminal server. Check if any matching data exists in the table and delete it if needed before running insert scripts. After insertion, update the loaded data to set process flags to new values.

Uploaded by

vivek
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views2 pages

Run A Select To Get The Query Results Grid

Run a select query to export results to a file named PS_CSY_PNET_STG, then copy the file locally and to a terminal server. Check if any matching data exists in the table and delete it if needed before running insert scripts. After insertion, update the loaded data to set process flags to new values.

Uploaded by

vivek
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Run a select to get the query results grid.

Right click the grid to get to “export”


Enter the table name PS_CSY_PNET_STG and filename of your choice.

Copy the file you created and put it on your local desktop. Then copy that file and put it on the upgrade
terminal server.

First check to see if any of the data you are copying already exists in the table PS_CSY_PNET_STG.
Delete if necessary then run the insert scripts in SQL Developer.

After the scripts have run you need to update the data you just loaded.

update ps_csy_pnet_stg a
set a.process_instance = 0
, process_flg = 'N'
, LOAD_STATUS = 'NEW'
WHERE ( A.PAY_END_DT BETWEEN TO_DATE('2017-06-01','YYYY-MM-DD') AND TO_DATE('2017-06-
04','YYYY-MM-DD')
and a.filename <> 'PNET_TIME201706051215'
and a.filename like 'PNET_TIME201706%' ) ;

You might also like