Please take this survey to help us learn more about how you use third party tools. Your input is greatly appreciated!

eliminating cross join

edited April 2018 in General Discussion


I was solving this issue

and found the answer using cross join. However, this query is taking a lot of time as the cross join is resulting in several billions of rows. I want to achieve the same result without cross join.

is there a way to achieve this?


  • Jim_KnicelyJim_Knicely Administrator

    Can you share the query you wrote?

  • Hi VerticaForums,

    It is the same query what you have given, but I have millions of records in players table when we take cross product with thousands of records in matches it will result in billions of records. That is the problem.

    How do we rewrite this query, to solve this issue

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file

Can't find what you're looking for? Search the Vertica Documentation, Knowledge Base, or Blog for more information.