table 中的多行具有来自另一个 table 的值

Multiple rows in table with values from another table

我正在努力解决以下问题:

表 1:

表 2:

预期结果:

基本上我想要日期 table 中的多行与来自用户 table 的行。这有可能吗? (使用 TSQL)。

您需要应用交叉连接

select date,month,userid,userno from table1 cross join table2
select Date, Month, USER_ID, ID from
t1 cross join t2