SQL join two tables without keys/relations

后端 未结 2 431
死守一世寂寞
死守一世寂寞 2020-12-24 02:29

I have two tables, one of them has weeks of year, and the second table has categories. I need to create a table that contains each week and each category, but there\'s no fi

相关标签:
2条回答
  • 2020-12-24 02:47
    SELECT * FROM Table1 CROSS JOIN Table2
    

    This will get you every combination of all columns from Table1 and Table2.

    0 讨论(0)
  • 2020-12-24 02:54

    Have you tried just

     SELECT * FROM table1, table2
    
    0 讨论(0)
提交回复
热议问题