We help IT Professionals succeed at work.
Get Started

Efficiently Output query results into two adjacent columns in Excel spreadsheet

937 Views
Last Modified: 2012-08-24
I have written an SQL query from an Oracle database to extract 48 values (24 per column) and place them into an Excel spreadsheet into 2 adjacent columns.  It is working.  However, it is slow.  When I run the script in debug mode, it slows down when I begin to output the data (takes approximately 30 seconds).  I am a novice SQLPlus and VBA user.  Any suggestions on how to speed up the output up would be appreciated.  I have attached a snippet of the code and indicated where the slow down begins.  Also, if you provide a suggestion involving the query, please provide an explanation.  I tried an Inner join but it gives me an Oracle  00923 error.  The Oracle version is 11g.  Thanks for your help.
eequest.txt
Comment
Watch Question
Analyst Assistant
CERTIFIED EXPERT
Distinguished Expert 2020
Commented:
This problem has been solved!
Unlock 2 Answers and 23 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE