Top "Cross-join" questions

CROSS JOIN is a join operation, that returns the Cartesian product of rows from tables in the join.

SQL Server 2008 using SUM() OVER(ORDER BY...)

I am trying to use a CTE and CROSS JOIN the result set. I want to sum up the 4 rows …

sql sql-server-2008 cross-join
Memory efficient cartesian join in PySpark

I have a large dataset of string ids, that can fit into memory on a single node in my spark …

apache-spark pyspark cartesian-product cross-join
sql cross join - what use has anyone found for it?

Today, for the first time in 10 years of development with sql server I used a cross join in a production …

sql-server database tsql cross-join
Why does Hibernate generate a CROSS JOIN for an implicit join of a @ManyToOne association?

Baur & King said in their book: Implicit joins are always directed along many-to-one or one-to-one association, never through a …

java sql database hibernate cross-join
Difference between cross product (cross join, Cartesian product) and natural join

While writing in SQL, how would I know if I should use cross product (cross join, Cartesian product) or natural …

sql cartesian-product cross-join natural-join
How to implement "Cross Join" in Spark?

We plan to move Apache Pig code to the new Spark platform. Pig has a "Bag/Tuple/Field" concept and …

apache-spark cross-join
Aggregate functions on multiple joined tables

I have three tables: CREATE TABLE foo ( id bigint PRIMARY KEY, name text NOT NULL ); CREATE TABLE foo_bar ( id …

sql postgresql left-join aggregate-functions cross-join
In SQL, what's the difference between JOIN and CROSS JOIN?

What's the difference between: select t1.a1, t1.a2, t1.a3 from t1 cross join t2 where t1.a3 = t2.…

mysql sql join cross-join
mysql cross join, but without duplicated pair?

Let's say I have the following row in my table table rows id 63 64 65 66 67 68 if I run the following query, I …

mysql cross-join
combinations (not permutations) from cross join in sql

If I have a table that I'd like to cross join to itself, how can I remove the duplicate rows? …

sql self-join cross-join