A select query selecting a select statement

后端 未结 2 963
鱼传尺愫
鱼传尺愫 2020-12-25 15:21

I don\'t even know if I am doing this query the right way. There is a Sandwiches table that has some 7 fields and 2 of them are comboboxes (Type an

2条回答
  •  执笔经年
    2020-12-25 15:37

    I was over-complicating myself. After taking a long break and coming back, the desired output could be accomplished by this simple query:

    SELECT Sandwiches.[Sandwich Type], Sandwich.Bread, Count(Sandwiches.[SandwichID]) AS [Total Sandwiches]
    FROM Sandwiches
    GROUP BY Sandwiches.[Sandwiches Type], Sandwiches.Bread;
    

    Thanks for answering, it helped my train of thought.

提交回复
热议问题