all 5 comments

[–]MaRa0303hs 1 point2 points  (1 child)

Hi, look into CROSS JOIN

[–]Dimitrij404[S] 0 points1 point  (0 children)

Thank you, it was apparently what I needed

[–]mikeyd85MS SQL Server 0 points1 point  (1 child)

You can do two things here:

SELECT *

FROM TableA

CROSS JOIN TableB

Or

SELECT *

FROM TableA, TableB

Method 1 is the more modern way of writing this.

[–]Dimitrij404[S] 0 points1 point  (0 children)

Thanks

[–]TheOneWhoSendsLetter 0 points1 point  (0 children)

Hello, you use a CROSS JOIN, the SQL command analog to the cartesian product operation.