Knowledge Base

Blog Faq400

SQL: Playing with CROSS JOIN

blog
Last Updated on 14 October 2019 by Roberto De Pedrini A type of join that is little used and considered of lower rank than the other joins is the CROSS JOIN. This operation is used to create all possible combinations of each row between two (or more) tables; it is certainly an option to be used with extreme attention to the cardinality of the tables involved. The lines expected from a cross join are given by the product of the rows of the two (or more) tables participating in the join; imagine if by mistake we cross a table of 1,000,000 rows with a table of 2,000,000 rows: the result is a dataset of 2,000,000,000,000 rows. …

Riservato agli iscritti

Per leggere l'articolo completo serve un account Faq400: è gratuito e ti dà accesso anche a Willi, l'assistente AI, e a tutta la Knowledge Base.

Prova a chiederlo a Willi

Willi, l'assistente AI della community, risponde a queste domande usando questo articolo e le altre fonti Faq400. È gratuito: iscriviti e ricevi subito la risposta.

Chi legge questo, legge anche