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

Joining DB VIEW and Command result in cartesian product

hello,

My SQL query is joining a DB view and a Command(=ad hoc query).

Nonetheless from the results it appears that CR didn't join the views correctly, it returns a cartesian product.

Any idea what the issue could be, I'm using very simple queries.

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 01:53 AM

    #1 make sure you are linking everything together properly in the "Links" tab of the Database Expert

    #2 In my experience, it's just a bad idea to join SQL commands and other tables. I had poor performance issues in my case. (It prevents server side filtering and grouping) My suggestion is to write out the entire thing in the command. If you are pulling from multiple database, write a separate command for each database and link them.

    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.