How to join two unrelated tables in sql

后端 未结 4 1177
我在风中等你
我在风中等你 2021-01-03 22:07

I have two tables:

Table 1: Formulas

FormulaId    Formula Text
1            [Qty] * [Rect]
2            [Qty] * [Al]
3            [Mt] * [Cat]  
         


        
4条回答
  •  抹茶落季
    2021-01-03 22:33

    You want to use a CROSS JOIN:

    SELECT FormulaId, Formula, ContextId, [Name]
    FROM Formula
    CROSS JOIN Context
    

提交回复
热议问题