Skip to Content
author's profile photo Former Member
Former Member

Joining two commands

Post Author: ray3280

CA Forum: Data Connectivity and SQL

I have two complex SQL queries that I've put into two different SQL Commands. One returns about 15,000 Rows and the other returns about 30,000 rows. Now I join the results of both commands on 3 different fields, so I would think my report would run pretty quick, but it does not. It seriously takes about 30min just to return 100 rows. Has anyone else encountered this issue? Could it be because commands do not set any indexes? I am not sure, this really should not take 30min just to return 100 rows.

Each command themselves run really quick, it takes about 10sec to return the results of each command.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2007 at 02:09 AM

    Post Author: Jagan

    CA Forum: Data Connectivity and SQL

    How quickly do the joined commands run in SQL directly?i.e. why do you need two commands within Crystal? Make each an inline view, join them and select from them in one command.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.