oracle - How to export the result into different tabs of Excel in Toad for Data Analyst? -


Does anyone know that using more than one query in Tuda using report automation, in different sheets of the same Excel workbook How to export data analyzer? Thank you

I'm not sure that you can do this automatically with Todd but a little The trick that you can do with Excel.

Type the first query and execute it in tod, then right-click on the query result data grid and select "export dataset ...", select "Excel example" under Excel format and click OK Make it open Excel and add a sheet to the data from your query.

Repeat this process for the second query and it will add the same document to the same document and fill the data from the second query.

After you execute all the questions and add the Excel document to Excel in Excel.

If you want to do it completely automatically, then there is another solution that you can use to create an Excel document with several sheets. Purchase third party PL / SQL package, ORA_EXCEL with data from various queries.

Here's how:

  BEGIN ORA_EXCEL.new_document; ORA_EXCEL.add_sheet ('employee'); ORA_EXCEL.query_to_sheet ('Select from employees'); ORA_EXCEL.add_sheet ('Departments'); ORA_EXCEL.query_to_sheet (select 'From Departments, FALSE); ORA_EXCEL.add_sheet ('location'); ORA_EXCEL.query_to_sheet ('Select from locations'); - EXPORT_DIR is at least one Oracle directory - write permission ORA_EXCEL.save_to_file ('EXPORT_DIR', 'example.xlsx'); End;  

This can generate an Excel file and store it in the Oracle Directory, or you can generate a Excel file in the PL / SQL BOLB variable so you can store it in the table. Or create your own process to distribute.

Cheers


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -